Merge pull request #108209 from SuperSandro2000/patator
This commit is contained in:
commit
308154c546
|
@ -1,4 +1,4 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi, isPy3k }:
|
{ lib, buildPythonPackage, fetchPypi, flask, ldapdomaindump, pycryptodomex, pyasn1, pyopenssl }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "impacket";
|
pname = "impacket";
|
||||||
|
@ -9,16 +9,18 @@ buildPythonPackage rec {
|
||||||
sha256 = "4bf7e7b595356585599b4b2773b8a463d7b9765c97012dcd5a44eb6d547f6a1d";
|
sha256 = "4bf7e7b595356585599b4b2773b8a463d7b9765c97012dcd5a44eb6d547f6a1d";
|
||||||
};
|
};
|
||||||
|
|
||||||
disabled = isPy3k;
|
propagatedBuildInputs = [ flask ldapdomaindump pycryptodomex pyasn1 pyopenssl ];
|
||||||
|
|
||||||
# no tests
|
# fail with:
|
||||||
|
# RecursionError: maximum recursion depth exceeded
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
pythonImportsCheck = [ "impacket" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Network protocols Constructors and Dissectors";
|
description = "Network protocols Constructors and Dissectors";
|
||||||
homepage = "https://github.com/CoreSecurity/impacket";
|
homepage = "https://github.com/CoreSecurity/impacket";
|
||||||
# Modified Apache Software License, Version 1.1
|
# Modified Apache Software License, Version 1.1
|
||||||
license = licenses.free;
|
license = licenses.free;
|
||||||
maintainers = with maintainers; [ peterhoeg ];
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
24
pkgs/development/python-modules/ldapdomaindump/default.nix
Normal file
24
pkgs/development/python-modules/ldapdomaindump/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
{ lib, buildPythonPackage, fetchPypi, dnspython, future, ldap3 }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "ldapdomaindump";
|
||||||
|
version = "0.9.3";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "10cis8cllpa9qi5qil9k7521ag3921mxwg2wj9nyn0lk41rkjagc";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ dnspython future ldap3 ];
|
||||||
|
|
||||||
|
# requires ldap server
|
||||||
|
doCheck = false;
|
||||||
|
pythonImportsCheck = [ "ldapdomaindump" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Active Directory information dumper via LDAP";
|
||||||
|
homepage = "https://github.com/dirkjanm/ldapdomaindump/";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,22 +1,28 @@
|
||||||
{ stdenv, buildPythonPackage, isPy3k, fetchPypi,
|
{ stdenv, buildPythonPackage, isPy27, fetchPypi
|
||||||
paramiko, pycurl, ajpy, pyopenssl, cx_oracle, mysqlclient,
|
, paramiko, pycurl, ajpy, impacket, pyopenssl, cx_oracle, mysqlclient
|
||||||
psycopg2, pycrypto, dnspython, ipy, pysnmp, pyasn1 }:
|
, psycopg2, pycrypto, dnspython, ipy, pysnmp, pyasn1, pysqlcipher3 }:
|
||||||
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "patator";
|
pname = "patator";
|
||||||
version = "0.9";
|
version = "0.9";
|
||||||
disabled = !(isPy3k);
|
disabled = isPy27;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "68cb24bdc3042ee0d47a288b19a8b99a6c54bdbd4ddf0c5817d9b9ac0a0d8a15";
|
sha256 = "68cb24bdc3042ee0d47a288b19a8b99a6c54bdbd4ddf0c5817d9b9ac0a0d8a15";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace requirements.txt \
|
||||||
|
--replace psycopg2-binary psycopg2
|
||||||
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
paramiko
|
paramiko
|
||||||
pycurl
|
pycurl
|
||||||
ajpy
|
ajpy
|
||||||
|
impacket
|
||||||
pyopenssl
|
pyopenssl
|
||||||
cx_oracle
|
cx_oracle
|
||||||
mysqlclient
|
mysqlclient
|
||||||
|
@ -26,15 +32,16 @@ buildPythonPackage rec {
|
||||||
ipy
|
ipy
|
||||||
pysnmp
|
pysnmp
|
||||||
pyasn1
|
pyasn1
|
||||||
|
pysqlcipher3
|
||||||
];
|
];
|
||||||
|
|
||||||
# No tests provided by patator
|
# tests require docker-compose and vagrant
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "multi-purpose brute-forcer";
|
description = "multi-purpose brute-forcer";
|
||||||
homepage = "https://github.com/lanjelot/patator";
|
homepage = "https://github.com/lanjelot/patator";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = with maintainers; [ y0no ];
|
maintainers = with maintainers; [ y0no SuperSandro2000 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
24
pkgs/development/python-modules/pysqlcipher3/default.nix
Normal file
24
pkgs/development/python-modules/pysqlcipher3/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
{ lib, buildPythonPackage, fetchPypi, pythonAtLeast, sqlcipher }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pysqlcipher3";
|
||||||
|
version = "1.0.3";
|
||||||
|
|
||||||
|
disabled = pythonAtLeast "3.9";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "0c54m18h52llwkfc9zaag3qkmfzzp5a1w9jzsm5hd2nfdsxmnkk9";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ sqlcipher ];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "pysqlcipher3" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python 3 bindings for SQLCipher";
|
||||||
|
homepage = "https://github.com/rigglemania/pysqlcipher3/";
|
||||||
|
license = licenses.zlib;
|
||||||
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,11 +1,10 @@
|
||||||
{
|
{ lib, fetchPypi, buildPythonPackage, isPy3k, pythonOlder
|
||||||
lib, fetchPypi, buildPythonPackage, isPy3k, pythonOlder,
|
# runtime dependencies
|
||||||
# runtime dependencies
|
, pandas, numpy, requests, inflection, python-dateutil, six, more-itertools, importlib-metadata
|
||||||
pandas, numpy, requests, inflection, python-dateutil, six, more-itertools, importlib-metadata,
|
# test suite dependencies
|
||||||
# test suite dependencies
|
, nose, unittest2, flake8, httpretty, mock, jsondate, parameterized, faker, factory_boy
|
||||||
nose, unittest2, flake8, httpretty, mock, jsondate, parameterized, faker, factory_boy,
|
# additional runtime dependencies are required on Python 2.x
|
||||||
# additional runtime dependencies are required on Python 2.x
|
, pyopenssl, ndg-httpsclient, pyasn1
|
||||||
pyOpenSSL ? null, ndg-httpsclient ? null, pyasn1 ? null
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -19,8 +18,6 @@ buildPythonPackage rec {
|
||||||
sha256 = "0zpw0nwqr4g56l9z4my0fahfgpcmfx74acbmv6nfx1dmq5ggraf3";
|
sha256 = "0zpw0nwqr4g56l9z4my0fahfgpcmfx74acbmv6nfx1dmq5ggraf3";
|
||||||
};
|
};
|
||||||
|
|
||||||
doCheck = true;
|
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
nose
|
nose
|
||||||
unittest2
|
unittest2
|
||||||
|
@ -42,7 +39,7 @@ buildPythonPackage rec {
|
||||||
six
|
six
|
||||||
more-itertools
|
more-itertools
|
||||||
] ++ lib.optionals (!isPy3k) [
|
] ++ lib.optionals (!isPy3k) [
|
||||||
pyOpenSSL
|
pyopenssl
|
||||||
ndg-httpsclient
|
ndg-httpsclient
|
||||||
pyasn1
|
pyasn1
|
||||||
] ++ lib.optionals (pythonOlder "3.8") [
|
] ++ lib.optionals (pythonOlder "3.8") [
|
||||||
|
|
|
@ -3405,9 +3405,13 @@ in {
|
||||||
|
|
||||||
lazy-object-proxy = callPackage ../development/python-modules/lazy-object-proxy { };
|
lazy-object-proxy = callPackage ../development/python-modules/lazy-object-proxy { };
|
||||||
|
|
||||||
|
ldap = callPackage ../development/python-modules/ldap {
|
||||||
|
inherit (pkgs) openldap cyrus_sasl;
|
||||||
|
};
|
||||||
|
|
||||||
ldap3 = callPackage ../development/python-modules/ldap3 { };
|
ldap3 = callPackage ../development/python-modules/ldap3 { };
|
||||||
|
|
||||||
ldap = callPackage ../development/python-modules/ldap { inherit (pkgs) openldap cyrus_sasl; };
|
ldapdomaindump = callPackage ../development/python-modules/ldapdomaindump { };
|
||||||
|
|
||||||
ldappool = callPackage ../development/python-modules/ldappool { };
|
ldappool = callPackage ../development/python-modules/ldappool { };
|
||||||
|
|
||||||
|
@ -5722,6 +5726,10 @@ in {
|
||||||
|
|
||||||
pysptk = callPackage ../development/python-modules/pysptk { };
|
pysptk = callPackage ../development/python-modules/pysptk { };
|
||||||
|
|
||||||
|
pysqlcipher3 = callPackage ../development/python-modules/pysqlcipher3 {
|
||||||
|
inherit (pkgs) sqlcipher;
|
||||||
|
};
|
||||||
|
|
||||||
pysqlite = callPackage ../development/python-modules/pysqlite { };
|
pysqlite = callPackage ../development/python-modules/pysqlite { };
|
||||||
|
|
||||||
pysqueezebox = callPackage ../development/python-modules/pysqueezebox { };
|
pysqueezebox = callPackage ../development/python-modules/pysqueezebox { };
|
||||||
|
|
Loading…
Reference in a new issue