forked from Workingdaturah/Payload-Generator
-
Notifications
You must be signed in to change notification settings - Fork 1
/
PG.cna
40 lines (34 loc) · 933 Bytes
/
PG.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
31
32
33
34
35
36
37
38
39
# Payload Generator
# Reference: https://github.com/offsecginger/AggressorScripts
# C# Payload Templates
# C# CreateThread method
# Creates an executable that loads shellcode via CreateThread
# Add Payload Generator to menubar
menubar("Payload Generator", "morepayloads", 2);
popup morepayloads {
menu "&Generate Payload" {
# Include a new menu for each template added and load different script
item "&C# CreateThread" {
@aggressor = ('./aggressors/PG/scripts/createthread_va.cna');
if (substr(cwd(), 0, 1) eq "/") {
# OS is linux
}
else {
#OS is windows
$aggressor = strrep($aggressor, "/", "\\")
}
include(@aggressor);
}
item "&C# CreateRemoteThread" {
@aggressor = ('./aggressors/PG/scripts/createremotethread.cna');
if (substr(cwd(), 0, 1) eq "/") {
# OS is linux
}
else {
#OS is windows
$aggressor = strrep($aggressor, "/", "\\")
}
include(@aggressor);
}
}
}