blix/pkgs/routersploit.nix

37 lines
840 B
Nix
Raw Normal View History

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-07-20 19:12:51 +00:00
buildInputs = 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
];
2021-07-20 19:12:51 +00:00
strictDeps = true;
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 ];
};
}