2021-03-07 12:54:45 +00:00
|
|
|
{lib, stdenv, pkgs, fetchFromGitHub }:
|
2021-03-06 22:46:21 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "routersploit";
|
|
|
|
version = "3fd3946";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "threat9";
|
|
|
|
repo = "routersploit";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0j1c6xl5nws8r81847a7jhwjc88aafkq9yby6rczym0mpnyg8i10";
|
|
|
|
};
|
|
|
|
|
2021-03-06 23:53:02 +00:00
|
|
|
propagatedBuildInputs = with pkgs.python3Packages; [
|
2021-03-07 12:54:45 +00:00
|
|
|
pkgs.python3 bluepy future requests paramiko pysnmp pycryptodome setuptools
|
2021-03-06 23:53:02 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
true
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
chmod 755 rsf.py
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -r routersploit rsf.py $out/bin
|
|
|
|
'';
|
2021-03-06 22:46:21 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://git.causal.agency/catgirl/about/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
description = "Exploitation framework for embedded devices";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ xfnw ];
|
|
|
|
};
|
|
|
|
}
|