-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b0f27bb
commit 6399d09
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,5 +24,6 @@ | |
python312Packages.xlsxwriter | ||
pyGPOAbuse | ||
python312Packages.pypykatz | ||
wmiexec-Pro | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
self: super: | ||
|
||
{ | ||
wmiexec-Pro = super.stdenv.mkDerivation rec { | ||
pname = "wmiexec-Pro"; | ||
version = "unstable-2025-01-03"; # Use today's date as version | ||
|
||
src = super.fetchFromGitHub { | ||
owner = "XiaoliChan"; | ||
repo = "wmiexec-Pro"; | ||
rev = "6a12e5ec057cf0fa949da92b056d0f60af3d72c9"; # Replace with the specific commit hash if needed | ||
sha256 = "sha256-tcBv6JhfkAthVoQ4wE9xYU3TdejdJ53gjLywBP1RGc0="; # Replace with the actual hash | ||
}; | ||
|
||
meta = with super.lib; { | ||
description = "New generation of wmiexec.py with AV evasion features"; | ||
homepage = "https://github.com/XiaoliChan/wmiexec-Pro"; | ||
license = licenses.gpl3; # Replace with the correct license if available | ||
maintainers = with maintainers; [ lib.maintainers.Mag1cByt3s ]; | ||
}; | ||
|
||
buildInputs = [ | ||
(super.python3.withPackages (ps: with ps; [ | ||
impacket | ||
numpy | ||
])) | ||
]; | ||
|
||
installPhase = '' | ||
mkdir -p $out/bin | ||
cp -r $src/* $out/bin/ | ||
# Add shebang line to make the script executable | ||
sed -i '1s;^;#!/usr/bin/env python3\n;' $out/bin/wmiexec-pro.py | ||
ln -s $out/bin/wmiexec-pro.py $out/bin/wmiexec-pro | ||
ln -s $out/bin/wmiexec-pro.py $out/bin/wmiexec-Pro | ||
chmod +x $out/bin/wmiexec-pro.py | ||
chmod +x $out/bin/wmiexec-pro | ||
chmod +x $out/bin/wmiexec-Pro | ||
''; | ||
}; | ||
} |