-
Notifications
You must be signed in to change notification settings - Fork 1
/
nameMapper.cna
70 lines (59 loc) · 1.83 KB
/
nameMapper.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
###############
# nameMapper - For the lazy
###############
# ToDo:
#Alies for 'shell net user "current user" /domain' (Might want to add option for other #users or leave blank for current)
#Alies for 'shell type "file"'
#Alies for 'shell ping "IP"'
#Alies for 'shell nslookup "IP"'
#Alies for 'shell ipconfig /all'
#Alies for 'shell wmic logicaldisk get #caption,description,drivetype,providername,volumename'
#Alies to find-DA (Chcek beacon log for user hunter, import if not there. Find DA group. #Set note)
#shell type file
alias cat{
bshell($1,"type $2");
}
#shell ping (ip)
alias ping{
bshell($1,"ping $2");
}
beacon_command_register(
"ping",
"Execute 'ping' from target",
"Execute 'ping' from target to specified ip or domain name\n\rUsage: ping 'ip/dns'"
)
#shell nslookup (ip)
alias nslookup{
bshell($1,"nslookup $2");
}
beacon_command_register(
"nslookup",
"Execute 'nslookup' from target",
"Execute 'nslookup' from target to specified ip or domain name\n\rUsage: nslookup 'ip/dns'"
)
#shell ipconfig /all
alias ipconfig {
bshell($1,"ipconfig /all")
}
alias ifconfig {
bshell($1,"ipconfig /all")
}
beacon_command_register(
"ifconfig",
"Executes 'ipconfig /all'",
"Executes 'ipconfig /all' using the shell command"
)
beacon_command_register(
"ipconfig",
"Executes 'ipconfig /all'",
"Executes 'ipconfig /all' using the shell command"
)
#shell wmic logicaldisk get caption,description,drivetype,providername,volumename
alias drivesExtended {
bshell($1,"wmic logicaldisk get caption,description,drivetype,providername,volumename");
}
beacon_command_register(
"drivesExtended",
"Lists drives on target with more info",
"Simply runs wmic logicaldisk get caption,description,drivetype,providername,volumename on the current beacon");
#Alies to find-DA (Chcek beacon log for user hunter, import if not there. Find DA group. Set note)