-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdarkscan.py
722 lines (638 loc) · 26.3 KB
/
darkscan.py
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
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
#!/usr/bin/python
# -*- coding: utf-8 -*-
#===============================
# By : 1ucif3r
# Github.com/1ucif3r
# instagram.com/0x1ucif3r
# twitter.com/0x1ucif3r
#
# www.dark4rmy.com
#================================
import sys
import os
import time
import signal
from time import sleep
from sys import argv
from platform import system
defaultportscan="50";
def darkmenu():
print("\n \033[1;91m your output file is in your current directory \033[1;m")
os.system("pwd")
print(" \033[1;91m Your current directory \033[1;m")
print("\n \033[1;91m1-) Back to Main Menu \n 2-) Exit \033[1;m")
choicedonus = input("root""\033[1;91m@DarkScan:~$\033[1;m ")
if choicedonus == "1":
os.system("clear")
darkscan()
if choicedonus == "2":
os.system("clear")
print(" \033[1;91m@Good Bye !! Happy Hacking !!\033[1;m")
sys.exit()
else:
print(" Please enter one of the options in the menu. \n You are directed to the main menu.")
time.sleep(2)
darkscan()
def sigint_handler(signum, frame):
os.system("clear")
print ("CTRL+C detected!")
print(" \033[1;91mGood Bye !! Happy Hacking !!\033[1;m")
sys.exit()
signal.signal(signal.SIGINT, sigint_handler)
os.system("clear")
def logo():
print ("""\033[1;91m
██████╗ █████╗ ██████╗ ██╗ ██╗ ███████╗ ██████╗ █████╗ ███╗ ██╗
██╔══██╗██╔══██╗██╔══██╗██║ ██╔╝ ██╔════╝██╔════╝██╔══██╗████╗ ██║
██║ ██║███████║██████╔╝█████╔╝ ███████╗██║ ███████║██╔██╗ ██║
██║ ██║██╔══██║██╔══██╗██╔═██╗ ╚════██║██║ ██╔══██║██║╚██╗██║
██████╔╝██║ ██║██║ ██║██║ ██╗ ███████║╚██████╗██║ ██║██║ ╚████║
╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚══════╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═══╝ v1
|_| By : 1ucif3r - dark4rmy.in |_|
\033[1;m """)
def menu():
logo()
print("""
1-) Normal Scanning
2-) Firewall Bypass
3-) Vulnerability Scanning
u-) Update
00-) Contact
0-) Exit
""")
def darkscan():
menu()
choice = input("root""\033[1;91m@DarkScan:~$\033[1;m ")
os.system('clear')
if choice == "1":
dscan()
elif choice == "2":
firewall()
elif choice == "3":
vul()
elif choice == "u":
update()
elif choice == "00":
credit()
elif choice == "0":
exit()
elif choice == "":
menu()
else:
print(" Please enter one of the options in the menu. \n You are directed to the main menu.")
time.sleep(2)
darkscan()
def dscan():
os.system("clear")
logo()
print("""
1-) Default Scan
2-) Host Discovery
3-) Port(SYN) Scan
4-) Port(TCP) Scan
5-) Port(UDP) Scan
6-) Null scan (-sN)
7-) FIN scan (-sF)
8-) OS Analysis and Version Discovery
9-) Nmap Script Engineering (default)
00-) Back to Menu
""")
choicedscan = input("root""\033[1;91m@DScan:~$\033[1;m ")
os.system('clear')
if choicedscan == "1":
os.system('clear')
ds()
if choicedscan == "2":
os.system('clear')
hd()
if choicedscan == '3':
os.system('clear')
synscan()
if choicedscan == "4":
os.system('clear')
tcpscan()
if choicedscan == "5":
os.system('clear')
udpscan()
if choicedscan == "6":
os.system('clear')
nullscan()
if choicedscan == "7":
os.system('clear')
finscan()
if choicedscan == "8":
os.system('clear')
oavd()
if choicedscan == "9":
os.system('clear')
nse()
elif choicedscan == "00":
darkscan()
def firewall():
os.system("clear")
logo()
print("""
1-) Script Bypass (--script=firewall-bypass)
2-) Data Length (--data-length <number> )
3-) Smash (-ff)
00-) Back to Menu
""")
choicefirewall = input("root""\033[1;91m@FirewallBypass:~$\033[1;m ")
os.system('clear')
if choicefirewall == "1":
os.system('clear')
sb()
if choicefirewall == "2":
os.system('clear')
dl()
if choicefirewall == '3':
os.system('clear')
smash()
elif choicefirewall == "00":
darkscan()
def vul():
os.system("clear")
logo()
print("""
1-) Default Vuln Scan (--script vuln)
2-) FTP Vuln Scan
3-) SMB Vuln Scan
4-) HTTP Vuln Scan
5-) SQL Injection Vuln Scan
6-) Stored XSS Vuln Scan
7-) Dom Based XSS vuln Scan
00-) Back to Menu
""")
choicevul = input("root""\033[1;91m@VulnerabilityScanning:~$\033[1;m ")
os.system('clear')
if choicevul == "1":
os.system('clear')
dvs()
if choicevul == "2":
os.system('clear')
ftpvulscan()
if choicevul == '3':
os.system('clear')
smbvulscan()
if choicevul == "4":
os.system('clear')
httpvulscan()
if choicevul == "5":
os.system('clear')
sqlvulscan()
if choicevul == "6":
os.system('clear')
storedxssscan()
if choicevul == "7":
os.system('clear')
domxssscan()
elif choicevul == "00":
darkscan()
def update():
print ("This Tool is Only Available for Linux and Similar Systems. ")
choiceupdate = input("Continue Y / N: ")
if choiceupdate in yes:
os.system("git clone https://github.com/D4RK-4RMY/Darkscan.git")
os.system("cd Darkscan ")
os.system("python3 darkscan.py")
def ds():
print(" Starting Default Scan...")
time.sleep(1)
os.system("clear")
logo()
print(" Enter your IP address (0.0.0.0) or example.com")
print("")
birhedef = input(" Enter Your Target: ")
if not birhedef:
print("Pls Enter Target")
print("\033[1;91mYou are grounded! You go to the main menu...\033[1;m")
time.sleep(2)
os.system("clear")
darkscan()
else:
topport1=input("Top Port? Example: 10 or 50, Default 50: ")
if not topport1:
os.system("nmap -vv --top-ports="+defaultportscan+" "+birhedef+" -oN "+birhedef)
else:
os.system("nmap -vv --top-ports="+topport1+" "+birhedef+" -oN "+birhedef)
darkmenu()
def hd():
print(" Starting Host Discovery...")
time.sleep(1)
os.system("clear")
logo()
print(" Enter your IP address (0.0.0.0) or example.com")
print("")
ikihedef = input(" Enter Your Target: ")
if not ikihedef:
print("Pls Enter Target")
print("\033[1;91mYou are grounded! You go to the main menu...\033[1;m")
time.sleep(2)
os.system("clear")
darkscan()
else:
topport2=input("Top Port? Example: 10 or 50, Default 50: ")
if not topport2:
os.system("nmap -vv -Pn --top-ports="+defaultportscan+" "+ikihedef+" -oN HostD-"+ikihedef+"-output")
else:
os.system("nmap -vv -Pn --top-ports="+topport2+" "+ikihedef+" -oN HostD-"+ikihedef+"-output")
darkmenu()
def synscan():
print(" Starting Port(SYN) Scan...")
time.sleep(1)
os.system("clear")
logo()
print(" Enter your IP address (0.0.0.0) or example.com")
print("")
uchedef = input(" Enter Your Target: ")
if not uchedef:
print("Pls Enter Target")
print("\033[1;91mYou are grounded! You go to the main menu...\033[1;m")
time.sleep(2)
os.system("clear")
darkscan()
else:
topport3=input("Top Port? Example: 10 or 50, Default 50: ")
if not topport3:
os.system("nmap -vv -sS --top-ports="+defaultportscan+" "+uchedef+" -oN "+uchedef+"-output")
else:
os.system("nmap -vv -sS --top-ports="+topport3+" "+uchedef+" -oN "+uchedef+"-output")
darkmenu()
def tcpscan():
print(" Starting Port(TCP) Scan...")
time.sleep(1)
os.system("clear")
logo()
print(" Enter your IP address (0.0.0.0) or example.com")
print("")
dorthedef = input(" Enter Your Target: ")
if not dorthedef:
print("Pls Enter Target")
print("\033[1;91mYou are grounded! You go to the main menu...\033[1;m")
time.sleep(2)
os.system("clear")
darkscan()
else:
topport4=input("Top Port? Example: 10 or 50, Default 50: ")
if not topport4:
os.system("nmap -vv –sT --top-ports="+defaultportscan+" "+dorthedef+" -oN TcpScan-"+dorthedef+"-output")
else:
os.system("nmap -vv –sT --top-ports="+topport4+" "+dorthedef+" -oN TcpScan-"+dorthedef+"-output")
darkmenu()
def udpscan():
print(" Starting Port(UDP) Scan...")
time.sleep(1)
os.system("clear")
logo()
print(" Enter your IP address (0.0.0.0) or example.com")
print("")
beshedef = input(" Enter Your Target: ")
if not beshedef:
print("Pls Enter Target")
print("\033[1;91mYou are grounded! You go to the main menu...\033[1;m")
time.sleep(2)
os.system("clear")
darkscan()
else:
topport5=input("Top Port? Example: 10 or 50, Default 50: ")
if not topport5:
os.system("nmap -vv –sU --top-ports="+defaultportscan+" "+beshedef+" -oN UdpScan-"+beshedef+"-output")
else:
os.system("nmap -vv –sU --top-ports="+topport5+" "+beshedef+" -oN UdpScan-"+beshedef+"-output")
darkmenu()
def nullscan():
print(" Null scan (-sN)")
time.sleep(1)
os.system("clear")
logo()
print(" Enter your IP address (0.0.0.0) or example.com")
print("")
altihedef = input(" Enter Your Target: ")
if not altihedef:
print("Pls Enter Target")
print("\033[1;91mYou are grounded! You go to the main menu...\033[1;m")
time.sleep(2)
os.system("clear")
darkscan()
else:
topport6=input("Top Port? Example: 10 or 50, Default 50: ")
if not topport6:
os.system("nmap -vv -sN --top-ports="+defaultportscan+" "+altihedef+" -oN NullScan-"+altihedef+"-output")
else:
os.system("nmap -vv -sN --top-ports="+topport6+" "+altihedef+" -oN NullScan-"+altihedef+"-output")
darkmenu()
def finscan():
print(" FIN scan (-sF)")
time.sleep(1)
os.system("clear")
logo()
print(" Enter your IP address (0.0.0.0) or example.com")
print("")
yedihedef = input(" Enter Your Target: ")
if not yedihedef:
print("Pls Enter Target")
print("\033[1;91mYou are grounded! You go to the main menu...\033[1;m")
time.sleep(2)
os.system("clear")
darkscan()
else:
topport7=input("Top Port? Example: 10 or 50, Default 50: ")
if not topport7:
os.system("nmap -vv -sF --top-ports="+defaultportscan+" "+yedihedef+" -oN FinScan-"+yedihedef+"-output")
else:
os.system("nmap -vv -sF --top-ports="+topport7+" "+yedihedef+" -oN FinScan-"+yedihedef+"-output")
darkmenu()
def oavd():
print(" Starting OS Analysis and Version Discovery...")
time.sleep(1)
os.system("clear")
logo()
print(" Enter your IP address (0.0.0.0) or example.com")
print("")
sekizhedef = input(" Enter Your Target: ")
if not sekizhedef:
print("Pls Enter Target")
print("\033[1;91mYou are grounded! You go to the main menu...\033[1;m")
time.sleep(2)
os.system("clear")
darkscan()
else:
topport8=input("Top Port? Example: 10 or 50, Default 50: ")
if not topport9:
os.system("nmap –sS -sV -O --top-ports="+defaultportscan+" "+sekizhedef+" -oN Os-Version-"+sekizhedef+"output")
else:
os.system("nmap –sS -sV -O --top-ports="+topport8+" "+sekizhedef+" -oN Os-Version-"+sekizhedef+"output")
darkmenu()
def nse():
print(" Starting Nmap Script Engineering...")
time.sleep(1)
os.system("clear")
logo()
print(" Enter your IP address (0.0.0.0) or example.com")
print("")
dokuzhedef = input(" Enter Your Target: ")
if not dokuzhedef:
print("Pls Enter Target")
print("\033[1;91mYou are grounded! You go to the main menu...\033[1;m")
time.sleep(2)
os.system("clear")
darkscan()
else:
topport9= input("Top Port? Example: 10 or 50, Default 50: ")
if not topport9:
os.system("nmap -vv --script=default --top-ports="+defaultportscan+" " +dokuzhedef+" -oN ScScan-"+dokuzhedef+"-output")
else:
os.system("nmap -vv --script=default --top-ports="+topport9+" " +dokuzhedef+" -oN ScScan-"+dokuzhedef+"-output")
darkmenu()
#firewall bypass
def sb():
print("Starting Nmap Scripting Firewall Bypass ")
time.sleep(1)
os.system("clear")
logo()
print(" Enter your IP address (0.0.0.0) or example.com")
print("")
onhedef = input(" Enter Your Target: ")
if not onhedef:
print("Pls Enter Target")
print("\033[1;91mYou are grounded! You go to the main menu...\033[1;m")
time.sleep(2)
os.system("clear")
darkscan()
else:
topport10= input("Top Port? Example: 10 or 50, Default 50: ")
if not topport10:
os.system("nmap -vv --script=firewall-bypass --top-ports="+defaultportscan+" " +onhedef+" -oN "+"firewallbaypass-"+onhedef+"-output")
else :
os.system("nmap -vv --script=firewall-bypass --top-ports="+topport10+" " +onhedef+" -oN "+"firewallbaypass-"+onhedef+"-output")
darkmenu()
def dl():
print("Starting Data Length ")
time.sleep(1)
os.system("clear")
logo()
print(" Enter your IP address (0.0.0.0) or example.com")
print("")
onbirhedef = input(" Enter Your Target: ")
if not onbirhedef:
print("Pls Enter Target")
print("\033[1;91mYou are grounded! You go to the main menu...\033[1;m")
time.sleep(2)
os.system("clear")
darkscan()
else:
topport11= input("Top Port? Example 10 or 50, Default 50: ")
print("Append random data to sent packets")
datalength=input("Number:")
if not topport11:
os.system("nmap --data-string "+datalength+" --top-ports="+defaultportscan+" "+onbirhedef+" -oN datalength-"+onbirhedef+"-output")
else:
os.system("nmap ---data-string +"+datalength+" --top-ports="+topport11+" "+onbirhedef+" -oN datalength-"+onbirhedef+"output")
darkmenu()
def smash():
print("Smash (-ff) ")
time.sleep(1)
os.system("clear")
logo()
print(" Enter your IP address (0.0.0.0) or example.com")
print("")
onikihedef = input(" Enter Your Target: ")
if not onikihedef:
print("Pls Enter Target")
print("\033[1;91mYou are grounded! You go to the main menu...\033[1;m")
time.sleep(2)
os.system("clear")
darkscan()
else:
topport12= input("Top Port? Example 10 or 50, Default 50: ")
if not topport12:
os.system("nmap -vv -ff --top-ports="+defaultportscan+" " +onikihedef+" -oN "+"ff-"+onikihedef+"-output" )
else:
os.system("nmap -vv -ff --top-ports="+topport12+" " +onikihedef+" -oN "+"ff-"+onikihedef+"-output" )
darkmenu()
#Vulnerability Scan 'needs some tweaking'
def dvs():
print("Default Vuln Scan ")
time.sleep(1)
os.system("clear")
logo()
print(" Enter your IP address (0.0.0.0) or example.com")
print("")
onuchedef = input(" Enter Your Target: ")
if not onuchedef:
print("Pls Enter Target")
print("\033[1;91mYou are grounded! You go to the main menu...\033[1;m")
time.sleep(2)
os.system("clear")
darkscan()
else:
topport13=input("\033[92mTop Port? Example 10 or 50, Default 50:\033[0m; ")
if not topport13:
os.system("nmap -vv -sV -ff -Pn --top-ports="+defaultportscan+" --script vuln " +onuchedef+" -oN "+"VulnScanDef-"+onuchedef+"-output" )
else:
os.system("nmap -vv -sV -ff -Pn --top-ports="+topport13+" --script vuln " +onuchedef+" -oN "+"VulnScanDef-"+onuchedef+"-output" )
darkmenu()
def ftpvulscan():
print("FTP Vuln Scan ")
time.sleep(1)
os.system("clear")
logo()
print(" Enter your IP address (0.0.0.0) or example.com")
print("")
ondorthedef = input(" Enter Your Target: ")
if not ondorthedef:
print("Pls Enter Target")
print("\033[1;91mYou are grounded! You go to the main menu...\033[1;m")
time.sleep(2)
os.system("clear")
darkscan()
else:
topport14=input("\033[92mTop Port? Example 10 or 50, Default 50:\033[0m; ")
if not topport14:
os.system("nmap -vv -sV -ff -Pn --top-ports="+defaultportscan+" --script ftp* " +ondorthedef+" -oN "+"FTPvuln-"+ondorthedef+"-output" )
else:
os.system("nmap -vv -sV -ff -Pn --top-ports="+topport14+" --script ftp* " +ondorthedef+" -oN "+"FTPvuln-"+ondorthedef+"-output" )
darkmenu()
def smbvulscan():
print("SMB Vuln Scan ")
time.sleep(1)
os.system("clear")
logo()
print(" Enter your IP address (0.0.0.0) or example.com")
print("")
onbeshedef = input(" Enter Your Target: ")
if not onbeshedef:
print("Pls Enter Target")
print("\033[1;91mYou are grounded! You go to the main menu...\033[1;m")
time.sleep(2)
os.system("clear")
darkscan()
else:
topport15=input("\033[92mTop Port? Example 10 or 50, Default 50:\033[0m; ")
if not topport15:
os.system("nmap -vv -sV -ff -Pn --top-ports="+defaultportscan+" --script smb* " +onbeshedef+" -oN "+"SMBvuln-"+onbeshedef+"-output" )
else:
os.system("nmap -vv -sV -ff -Pn --top-ports="+topport15+" --script smb* " +onbeshedef+" -oN "+"SMBvuln-"+onbeshedef+"-output" )
darkmenu()
def httpvulscan():
print("HTTP Vuln Scan ")
time.sleep(1)
os.system("clear")
logo()
print(" Enter your IP address (0.0.0.0) or example.com")
print("")
onaltihedef = input(" Enter Your Target: ")
if not onaltihedef:
print("Pls Enter Target")
print("\033[1;91mYou are grounded! You go to the main menu...\033[1;m")
time.sleep(2)
os.system("clear")
darkscan()
else:
topport16=input("\033[92mTop Port? Example 10 or 50, Default 50:\033[0m; ")
if not topport16:
os.system("nmap -vv -sV -ff -Pn --top-ports="+defaultportscan+" --script smb* " +onaltihedef+" -oN "+"HTTPvuln-"+onaltihedef+"-output" )
else:
os.system("nmap -vv -sV -ff -Pn --top-ports="+topport16+" --script smb* " +onaltihedef+" -oN "+"HTTPvuln-"+onaltihedef+"-output" )
darkmenu()
def sqlvulscan():
print("SQL Injection Vuln Scan ")
time.sleep(1)
os.system("clear")
logo()
print(" Enter your IP address (0.0.0.0) or example.com")
print("")
onyedihedef = input(" Enter Your Target: ")
if not onyedihedef:
print("Pls Enter Target")
print("\033[1;91mYou are grounded! You go to the main menu...\033[1;m")
time.sleep(2)
os.system("clear")
darkscan()
else:
topport17=input("\033[92mTop Port? Example 10 or 50, Default 50:\033[0m; ")
if not topport17:
os.system("nmap -vv -sV -ff -Pn --top-ports="+defaultportscan+" --script=http-sql-injection " +onyedihedef+" -oN "+"SQLvuln-"+onyedihedef+"-output" )
else:
os.system("nmap -vv -sV -ff -Pn --top-ports="+topport17+" --script=http-sql-injection " +onyedihedef+" -oN "+"SQLvuln-"+onyedihedef+"-output" )
darkmenu()
def storedxssscan():
print("Stored XSS Vuln Scan ")
time.sleep(1)
os.system("clear")
logo()
print(" Enter your IP address (0.0.0.0) or example.com")
print("")
onsekizhedef = input(" Enter Your Target: ")
if not onsekizhedef:
print("Pls Enter Target")
print("\033[1;91mYou are grounded! You go to the main menu...\033[1;m")
time.sleep(2)
os.system("clear")
darkscan()
else:
topport18=input("\033[92mTop Port? Example 10 or 50, Default 50:\033[0m; ")
if not topport18:
os.system("nmap -vv -sV -ff -Pn --top-ports="+defaultportscan+" --script=http-stored-xss.nse " +onsekizhedef+" -oN "+"StoredXSSvuln-"+onsekizhedef+"-output" )
else:
os.system("nmap -vv -sV -ff -Pn --top-ports="+topport18+" --script=http-stored-xss.nse " +onsekizhedef+" -oN "+"StoredXSSvuln-"+onsekizhedef+"-output" )
darkmenu()
def domxssscan():
print("DOM Based XSS Vuln Scan ")
time.sleep(1)
os.system("clear")
logo()
print(" Enter your IP address (0.0.0.0) or example.com")
print("")
ondokuzhedef = input(" Enter Your Target: ")
if not ondokuzhedef:
print("Pls Enter Target")
print("\033[1;91mYou are grounded! You go to the main menu...\033[1;m")
time.sleep(2)
os.system("clear")
darkscan()
else:
topport19=input("\033[92mTop Port? Example 10 or 50, Default 50:\033[0m; ")
if not topport19:
os.system("nmap -vv -sV -ff -Pn --top-ports="+defaultportscan+" --script=http-dombased-xss.nse " +ondokuzhedef+" -oN "+"DomBasedXSSvuln-"+ondokuzhedef+"-output" )
else:
os.system("nmap -vv -sV -ff -Pn --top-ports="+topport19+" --script=http-dombased-xss.nse " +ondokuzhedef+" -oN "+"DomBasedXSSvuln-"+ondokuzhedef+"-output" )
darkmenu()
def credit():
print ("""\033[1;91m
▄▄· ▐ ▄ ▄▄▄▄▄ ▄▄▄· ▄▄· ▄▄▄▄▄
▐█ ▌▪▪ •█▌▐█•██ ▐█ ▀█ ▐█ ▌▪•██
██ ▄▄ ▄█▀▄ ▐█▐▐▌ ▐█.▪▄█▀▀█ ██ ▄▄ ▐█.▪
▐███▌▐█▌.▐▌██▐█▌ ▐█▌·▐█ ▪▐▌▐███▌ ▐█▌·
·▀▀▀ ▀█▄▀▪▀▀ █▪ ▀▀▀ ▀ ▀ ·▀▀▀ ▀▀▀
=====================================
NOTE : For Back To Menu Press 1 OR For Exit Press 2
==========================================================
\033[1;m """)
print(""" [!] Mail: \033[1;[email protected]\033[1;m\n
[!] Instagram: \033[1;91mhttps://instagram.com/0x1ucif3r\033[1;m\n
[!] Web Site: \033[1;91mhttps://dark4rmy.in\033[1;m\n
[!] Github: \033[1;91mhttps://github.com/1ucif3r\033[1;m\n
[!] Twitter: \033[1;91mhttps://twitter.com/0x1ucif3r\033[1;m\n\n """)
choicedonus = input("root""\033[1;91m@Credit:~$\033[1;m ")
if choicedonus == "1":
os.system("clear")
darkscan()
if choicedonus == "2":
os.system("clear")
print(" \033[1;91mGood Bye !! Happy Hacking !!\033[1;m")
sys.exit()
else:
print(" Please enter one of the options in the menu. \n You are directed to the main menu.")
time.sleep(2)
darkscan()
def exit():
print(" \033[1;91mGood Bye !! Happy Hacking !!\033[1;m")
sys.exit()
def rootcontrol():
if os.geteuid()==0:
darkscan()
else:
print ("Please run it with root access.")
sys.exit()
rootcontrol()