2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, isPy27, fetchPypi
|
2021-01-05 17:05:55 +00:00
|
|
|
, paramiko, pycurl, ajpy, impacket, pyopenssl, cx_oracle, mysqlclient
|
|
|
|
, psycopg2, pycrypto, dnspython, ipy, pysnmp, pyasn1, pysqlcipher3 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "patator";
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "0.9";
|
2021-01-05 17:05:55 +00:00
|
|
|
disabled = isPy27;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-07 07:45:13 +00:00
|
|
|
sha256 = "68cb24bdc3042ee0d47a288b19a8b99a6c54bdbd4ddf0c5817d9b9ac0a0d8a15";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements.txt \
|
|
|
|
--replace psycopg2-binary psycopg2
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
paramiko
|
|
|
|
pycurl
|
|
|
|
ajpy
|
2021-01-05 17:05:55 +00:00
|
|
|
impacket
|
2020-04-24 23:36:52 +00:00
|
|
|
pyopenssl
|
|
|
|
cx_oracle
|
|
|
|
mysqlclient
|
|
|
|
psycopg2
|
|
|
|
pycrypto
|
|
|
|
dnspython
|
|
|
|
ipy
|
|
|
|
pysnmp
|
|
|
|
pyasn1
|
2021-01-05 17:05:55 +00:00
|
|
|
pysqlcipher3
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
# tests require docker-compose and vagrant
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "multi-purpose brute-forcer";
|
|
|
|
homepage = "https://github.com/lanjelot/patator";
|
|
|
|
license = licenses.gpl2;
|
2021-01-05 17:05:55 +00:00
|
|
|
maintainers = with maintainers; [ y0no SuperSandro2000 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|