Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sccmhunter: Init at 1.0.6-unstable-2024-10-30 #353121

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17673,6 +17673,12 @@
githubId = 5636;
name = "Steve Purcell";
};
purpole = {
email = "[email protected]";
github = "purpole";
githubId = 101905225;
name = "David Schneider";
};
purrpurrn = {
email = "[email protected]";
github = "purrpurrn";
Expand Down
46 changes: 46 additions & 0 deletions pkgs/by-name/sc/sccmhunter/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
lib,
fetchFromGitHub,
python3,
}:
python3.pkgs.buildPythonApplication rec {
purpole marked this conversation as resolved.
Show resolved Hide resolved
pname = "sccmhunter";
version = "1.0.6-unstable-2024-10-30";
pythonRelaxDeps = true;
purpole marked this conversation as resolved.
Show resolved Hide resolved
pyproject = true;

src = fetchFromGitHub {
owner = "garrettfoster13";
repo = "sccmhunter";
rev = "7f493d1499fec1a694d949d9de17f25acdb6a0a9";
hash = "sha256-rMkm4SDIiPrlNJWlnwD2td7yzkTNlTzZ3KaiKK5TOfg=";
};

purpole marked this conversation as resolved.
Show resolved Hide resolved
propagatedBuildInputs = with python3.pkgs; [
purpole marked this conversation as resolved.
Show resolved Hide resolved
cmd2
cryptography
impacket
ldap3
pandas
pyasn1
pyasn1-modules
requests
requests-kerberos
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, during my testing / building of the packages, it was a required package that was not listed within requirements.txt.

But, it seems that this was only by mistake (garrettfoster13/sccmhunter#75) and the dependency has since then been removed (garrettfoster13/sccmhunter@4c6669e).

Should I bump the commit rev to a newer commit where requests-kerberos is not included anymore?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems the using rev currently does not have it anymore. It's ok to just remove this dependency here.

https://github.com/garrettfoster13/sccmhunter/blob/7f493d1499fec1a694d949d9de17f25acdb6a0a9/lib/attacks/admin.py

requests-ntlm
requests-toolbelt
rich
tabulate
typer
urllib3
pyopenssl
pycryptodome
];

meta = with lib; {
description = "Post exploitation tool to identify and attack SCCM related assets in an Active Directory domain";
homepage = "https://github.com/garrettfoster13/sccmhunter";
license = licenses.mit;
mainProgram = "sccmhunter.py";
maintainers = with maintainers; [ purpole ];
};
purpole marked this conversation as resolved.
Show resolved Hide resolved
}