Merge pull request #109005 from fabaff/msldap

This commit is contained in:
Sandro 2021-01-11 09:29:45 +01:00 committed by GitHub
commit c7f5dcbb21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 125 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, impacket
, netaddr
, pypykatz
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "lsassy";
version = "2.1.3";
src = fetchFromGitHub {
owner = "Hackndo";
repo = pname;
rev = "v${version}";
sha256 = "1zig34ymc1h18gjc2ji0w0711im5sm9xm6nydc01c13yfpvvj1rh";
};
propagatedBuildInputs = [
impacket
netaddr
pypykatz
];
# Tests require an active domain controller
doCheck = false;
pythonImportsCheck = [ "lsassy" ];
meta = with lib; {
description = "Python module to extract data from Local Security Authority Subsystem Service (LSASS)";
homepage = "https://github.com/Hackndo/lsassy";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, fetchPypi
, asn1crypto
, asysocks
, minikerberos
, prompt_toolkit
, tqdm
, winacl
, winsspi
}:
buildPythonPackage rec {
pname = "msldap";
version = "0.3.22";
src = fetchPypi {
inherit pname version;
sha256 = "1ivq56953skql8f255nqx2sg4mm0kz2pr5b4dx62dx7jdgd1xym3";
};
propagatedBuildInputs = [
asn1crypto
asysocks
minikerberos
prompt_toolkit
tqdm
winacl
winsspi
];
# Project doesn't have tests
doCheck = false;
pythonImportsCheck = [ "msldap" ];
meta = with lib; {
description = "Python LDAP library for auditing MS AD";
homepage = "https://github.com/skelsec/msldap";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -0,0 +1,40 @@
{ lib
, aiowinreg
, buildPythonPackage
, fetchFromGitHub
, minidump
, minikerberos
, msldap
, winsspi
}:
buildPythonPackage rec {
pname = "pypykatz";
version = "0.3.15";
src = fetchFromGitHub {
owner = "skelsec";
repo = pname;
rev = version;
sha256 = "0bx2jdcfr1pdy3jgzg8fr5id9ffl2m1nc81dqhcplxdj8p214yri";
};
propagatedBuildInputs = [
aiowinreg
minikerberos
msldap
winsspi
minidump
];
# Project doesn't have tests
doCheck = false;
pythonImportsCheck = [ "pypykatz" ];
meta = with lib; {
description = "Mimikatz implementation in Python";
homepage = "https://github.com/skelsec/pypykatz";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -3711,6 +3711,8 @@ in {
lsi = callPackage ../development/python-modules/lsi { };
lsassy = callPackage ../development/python-modules/lsassy { };
ludios_wpull = callPackage ../development/python-modules/ludios_wpull { };
luftdaten = callPackage ../development/python-modules/luftdaten { };
@ -4074,6 +4076,8 @@ in {
msgpack-numpy = callPackage ../development/python-modules/msgpack-numpy { };
msldap = callPackage ../development/python-modules/msldap { };
mss = callPackage ../development/python-modules/mss { };
msrestazure = callPackage ../development/python-modules/msrestazure { };
@ -5612,6 +5616,8 @@ in {
pypugjs = callPackage ../development/python-modules/pypugjs { };
pypykatz = callPackage ../development/python-modules/pypykatz { };
pyqrcode = callPackage ../development/python-modules/pyqrcode { };
pyqt4 = callPackage ../development/python-modules/pyqt/4.x.nix { inherit (pkgs) pkgconfig; };