-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnullsec-launcher.py.bak2
More file actions
executable file
Β·1565 lines (1375 loc) Β· 83.1 KB
/
nullsec-launcher.py.bak2
File metadata and controls
executable file
Β·1565 lines (1375 loc) Β· 83.1 KB
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
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/usr/bin/env python3
"""
NULLSEC Operations Framework
Advanced Penetration Testing & Red Team Toolkit
Developed by bad-antics development
https://github.com/bad-antics
"""
import os
import sys
import subprocess
import time
import random
import shutil
import shlex
import json
# ANSI color codes
class Colors:
RESET = '\033[0m'
BOLD = '\033[1m'
DIM = '\033[2m'
RED = '\033[1;31m'
GREEN = '\033[1;32m'
YELLOW = '\033[1;33m'
BLUE = '\033[1;34m'
MAGENTA = '\033[1;35m'
CYAN = '\033[1;36m'
WHITE = '\033[1;37m'
BG_RED = '\033[41m'
BG_GREEN = '\033[42m'
BG_BLUE = '\033[44m'
BG_MAGENTA = '\033[45m'
# Attack modules
MODULES = [
# Network Attacks (1-5)
{"id": 1, "name": "Network Intrusion", "icon": "π₯οΈ", "script": "intrusion.sh", "desc": "Full penetration test chain", "category": "Network"},
{"id": 2, "name": "Port Scanner", "icon": "π", "script": "port-scanner.sh", "desc": "Advanced port enumeration", "category": "Network"},
{"id": 3, "name": "Man-in-the-Middle", "icon": "π΅οΈ", "script": "mitm-attack.sh", "desc": "ARP spoofing & traffic intercept", "category": "Network"},
{"id": 4, "name": "DNS Poisoning", "icon": "β οΈ", "script": "dns-poison.sh", "desc": "DNS cache poisoning attack", "category": "Network"},
{"id": 5, "name": "VLAN Hopping", "icon": "π", "script": "vlan-hop.sh", "desc": "Switch exploitation & pivoting", "category": "Network"},
# Wireless Attacks (6-10)
{"id": 6, "name": "WiFi Deauth", "icon": "π‘", "script": "wifi-deauth.sh", "desc": "Deauthentication & evil twin", "category": "Wireless"},
{"id": 7, "name": "Bluetooth Warfare", "icon": "π¦·", "script": "bluetooth-attack.sh", "desc": "BLE spam & device exploits", "category": "Wireless"},
{"id": 8, "name": "RFID Cloner", "icon": "π³", "script": "rfid-clone.sh", "desc": "Access card cloning ops", "category": "Wireless"},
{"id": 9, "name": "RF Jamming", "icon": "π»", "script": "rf-jammer.sh", "desc": "Radio frequency disruption", "category": "Wireless"},
{"id": 10, "name": "Zigbee Attack", "icon": "π ", "script": "zigbee-attack.sh", "desc": "IoT smart home exploitation", "category": "Wireless"},
# Web Attacks (11-16)
{"id": 11, "name": "SQL Injection", "icon": "ποΈ", "script": "database-exfil.sh", "desc": "SQLi & database exfiltration", "category": "Web"},
{"id": 12, "name": "XSS Exploiter", "icon": "οΏ½οΏ½", "script": "xss-attack.sh", "desc": "Cross-site scripting attacks", "category": "Web"},
{"id": 13, "name": "Web Shell Deploy", "icon": "π", "script": "webshell.sh", "desc": "Backdoor web shell injection", "category": "Web"},
{"id": 14, "name": "Directory Bruteforce", "icon": "π", "script": "dir-bruteforce.sh", "desc": "Hidden directory discovery", "category": "Web"},
{"id": 15, "name": "API Exploitation", "icon": "π", "script": "api-exploit.sh", "desc": "REST/GraphQL API attacks", "category": "Web"},
{"id": 16, "name": "Session Hijacking", "icon": "πͺ", "script": "session-hijack.sh", "desc": "Cookie theft & session takeover", "category": "Web"},
# Malware Operations (17-23)
{"id": 17, "name": "Ransomware Deploy", "icon": "π", "script": "ransomware.sh", "desc": "Encryption & extortion chain", "category": "Malware"},
{"id": 18, "name": "Cryptominer Botnet", "icon": "βοΈ", "script": "cryptominer.sh", "desc": "Mass cryptojacking operation", "category": "Malware"},
{"id": 19, "name": "RAT Deployment", "icon": "π", "script": "rat-deploy.sh", "desc": "Remote access trojan install", "category": "Malware"},
{"id": 20, "name": "Rootkit Installer", "icon": "π»", "script": "rootkit.sh", "desc": "Kernel-level persistence", "category": "Malware"},
{"id": 21, "name": "Keylogger Deploy", "icon": "β¨οΈ", "script": "keylogger.sh", "desc": "Keystroke capture & exfil", "category": "Malware"},
{"id": 22, "name": "Worm Propagation", "icon": "πͺ±", "script": "worm.sh", "desc": "Self-replicating malware", "category": "Malware"},
{"id": 23, "name": "Fileless Malware", "icon": "π¨", "script": "fileless.sh", "desc": "Memory-only persistence", "category": "Malware"},
# Social Engineering (24-28)
{"id": 24, "name": "Phishing Campaign", "icon": "π", "script": "social-engineering.sh", "desc": "Spear phishing & credential harvest", "category": "Social"},
{"id": 25, "name": "Vishing Attack", "icon": "π", "script": "vishing.sh", "desc": "Voice phishing operation", "category": "Social"},
{"id": 26, "name": "Smishing Campaign", "icon": "π±", "script": "smishing.sh", "desc": "SMS phishing mass deploy", "category": "Social"},
{"id": 27, "name": "Watering Hole", "icon": "π³οΈ", "script": "watering-hole.sh", "desc": "Targeted website compromise", "category": "Social"},
{"id": 28, "name": "Pretexting", "icon": "οΏ½οΏ½", "script": "pretexting.sh", "desc": "Identity impersonation attack", "category": "Social"},
# Advanced Attacks (29-34)
{"id": 29, "name": "APT Kill Chain", "icon": "π", "script": "apt-attack.sh", "desc": "Nation-state level attack", "category": "Advanced"},
{"id": 30, "name": "Zero-Day Exploit", "icon": "π₯", "script": "zero-day.sh", "desc": "0-day exploitation chain", "category": "Advanced"},
{"id": 31, "name": "Supply Chain Attack", "icon": "π¦", "script": "supply-chain.sh", "desc": "Software supply chain compromise", "category": "Advanced"},
{"id": 32, "name": "Firmware Backdoor", "icon": "π", "script": "firmware-backdoor.sh", "desc": "Hardware-level persistence", "category": "Advanced"},
{"id": 33, "name": "AI Model Poisoning", "icon": "π€", "script": "ai-poison.sh", "desc": "ML model manipulation", "category": "Advanced"},
{"id": 34, "name": "Satellite Hack", "icon": "π°οΈ", "script": "satellite-hack.sh", "desc": "Space infrastructure attack", "category": "Advanced"},
# Credential Attacks (35-39)
{"id": 35, "name": "Password Cracker", "icon": "π", "script": "password-crack.sh", "desc": "Hash cracking & brute force", "category": "Credentials"},
{"id": 36, "name": "Credential Stuffing", "icon": "π", "script": "cred-stuff.sh", "desc": "Mass login attempts", "category": "Credentials"},
{"id": 37, "name": "Kerberoasting", "icon": "π«", "script": "kerberoast.sh", "desc": "AD service ticket attack", "category": "Credentials"},
{"id": 38, "name": "Pass-the-Hash", "icon": "π", "script": "pass-hash.sh", "desc": "NTLM hash relay attack", "category": "Credentials"},
{"id": 39, "name": "Golden Ticket", "icon": "ποΈ", "script": "golden-ticket.sh", "desc": "Kerberos TGT forgery", "category": "Credentials"},
# Infrastructure (40-44)
{"id": 40, "name": "C2 Server", "icon": "π", "script": "c2-server.sh", "desc": "Command & control infrastructure", "category": "Infrastructure"},
{"id": 41, "name": "Proxy Chains", "icon": "π", "script": "proxy-chain.sh", "desc": "Multi-hop anonymization", "category": "Infrastructure"},
{"id": 42, "name": "VPN Tunneling", "icon": "π", "script": "vpn-tunnel.sh", "desc": "Encrypted tunnel creation", "category": "Infrastructure"},
{"id": 43, "name": "Tor Hidden Service", "icon": "π§
", "script": "tor-service.sh", "desc": "Onion service deployment", "category": "Infrastructure"},
{"id": 44, "name": "Fast Flux DNS", "icon": "β‘", "script": "fast-flux.sh", "desc": "Rapidly changing DNS records", "category": "Infrastructure"},
# Physical Security (45-49)
{"id": 45, "name": "Physical Bypass", "icon": "π", "script": "physical-bypass.sh", "desc": "Lock & access control bypass", "category": "Physical"},
{"id": 46, "name": "BadUSB Attack", "icon": "πΎ", "script": "badusb.sh", "desc": "Rubber ducky payload deploy", "category": "Physical"},
{"id": 47, "name": "Camera Hijack", "icon": "πΉ", "script": "camera-hijack.sh", "desc": "CCTV & webcam takeover", "category": "Physical"},
{"id": 48, "name": "Alarm System Bypass", "icon": "π¨", "script": "alarm-bypass.sh", "desc": "Security system defeat", "category": "Physical"},
{"id": 49, "name": "ATM Jackpotting", "icon": "π§", "script": "atm-jackpot.sh", "desc": "Cash machine exploitation", "category": "Physical"},
# OPSEC & Dark Web (50-54)
{"id": 50, "name": "Dark Web Ops", "icon": "π§
", "script": "darkweb-ops.sh", "desc": "TOR marketplace operations", "category": "OPSEC"},
{"id": 51, "name": "Crypto Laundering", "icon": "π°", "script": "crypto-launder.sh", "desc": "Cryptocurrency mixing & wash", "category": "OPSEC"},
{"id": 52, "name": "Identity Forge", "icon": "π", "script": "identity-forge.sh", "desc": "Fake identity generation", "category": "OPSEC"},
{"id": 53, "name": "Evidence Destruction", "icon": "π₯", "script": "evidence-destroy.sh", "desc": "Log wiping & anti-forensics", "category": "OPSEC"},
{"id": 54, "name": "Steganography", "icon": "πΌοΈ", "script": "stego.sh", "desc": "Hidden data in media files", "category": "OPSEC"},
# DDoS & Disruption (55-58)
{"id": 55, "name": "DDoS Attack", "icon": "π₯", "script": "ddos.sh", "desc": "Distributed denial of service", "category": "DDoS"},
{"id": 56, "name": "Slowloris", "icon": "π’", "script": "slowloris.sh", "desc": "Low-bandwidth DoS attack", "category": "DDoS"},
{"id": 57, "name": "DNS Amplification", "icon": "π‘", "script": "dns-amplify.sh", "desc": "Amplified reflection attack", "category": "DDoS"},
{"id": 58, "name": "Memcached Attack", "icon": "πΎ", "script": "memcached.sh", "desc": "UDP amplification flood", "category": "DDoS"},
# ICS/SCADA (59-62)
{"id": 59, "name": "SCADA Exploit", "icon": "π", "script": "scada-exploit.sh", "desc": "Industrial control system attack", "category": "ICS"},
{"id": 60, "name": "PLC Manipulation", "icon": "π§", "script": "plc-attack.sh", "desc": "Programmable logic controller hack", "category": "ICS"},
{"id": 61, "name": "Power Grid Attack", "icon": "β‘", "script": "power-grid.sh", "desc": "Electrical infrastructure sabotage", "category": "ICS"},
{"id": 62, "name": "Water System Hack", "icon": "π§", "script": "water-system.sh", "desc": "Water treatment plant exploit", "category": "ICS"},
# Advanced Exploitation (63-68)
{"id": 63, "name": "DNS Tunneling", "icon": "π", "script": "dns-tunnel.sh", "desc": "Data exfiltration via DNS", "category": "Advanced"},
{"id": 64, "name": "Process Injection", "icon": "π", "script": "process-injection.sh", "desc": "In-memory code execution", "category": "Advanced"},
{"id": 65, "name": "Lateral Movement", "icon": "π", "script": "lateral-movement.sh", "desc": "Network pivoting techniques", "category": "Network"},
{"id": 66, "name": "Token Impersonation", "icon": "π«", "script": "token-impersonate.sh", "desc": "Privilege escalation via tokens", "category": "Credentials"},
{"id": 67, "name": "Memory Exploitation", "icon": "πΎ", "script": "memory-exploit.sh", "desc": "Buffer overflow & heap attacks", "category": "Advanced"},
{"id": 68, "name": "Persistence", "icon": "π", "script": "persistence.sh", "desc": "Backdoor persistence mechanisms", "category": "Malware"},
]
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
ATTACK_DIR = os.path.join(SCRIPT_DIR, "nullsecurity")
# Command execution history
COMMAND_HISTORY = []
def check_command_exists(command):
"""Check if a command exists in PATH"""
return shutil.which(command) is not None
def install_package(package_name, installer='apt'):
"""Offer to install a missing package"""
print(f"\n{Colors.YELLOW}[!] {package_name} is not installed{Colors.RESET}")
print(f"{Colors.CYAN}[?] Would you like to install it? (y/n):{Colors.RESET} ", end='')
choice = input().strip().lower()
if choice == 'y':
print(f"\n{Colors.GREEN}[*] Installing {package_name}...{Colors.RESET}")
if installer == 'apt':
subprocess.run(['sudo', 'apt', 'update'], check=False)
result = subprocess.run(['sudo', 'apt', 'install', '-y', package_name], check=False)
elif installer == 'pip':
result = subprocess.run(['pip3', 'install', package_name], check=False)
elif installer == 'pip3':
result = subprocess.run(['pip3', 'install', package_name], check=False)
elif installer == 'npm':
result = subprocess.run(['sudo', 'npm', 'install', '-g', package_name], check=False)
elif installer == 'snap':
result = subprocess.run(['sudo', 'snap', 'install', package_name], check=False)
else:
result = subprocess.run(['sudo', installer, 'install', '-y', package_name], check=False)
if result.returncode == 0:
print(f"{Colors.GREEN}[β] {package_name} installed successfully{Colors.RESET}")
return True
else:
print(f"{Colors.RED}[β] Installation failed{Colors.RESET}")
return False
return False
def execute_external_command(command, description="Executing command"):
"""Execute external command with dependency checking"""
print(f"\n{Colors.CYAN}[*] {description}{Colors.RESET}")
print(f"{Colors.DIM}Command: {command}{Colors.RESET}\n")
# Parse command to check first binary
try:
parts = shlex.split(command)
if not parts:
print(f"{Colors.RED}[!] Empty command{Colors.RESET}")
return False
main_cmd = parts[0]
# Check if command exists
if not check_command_exists(main_cmd):
print(f"{Colors.YELLOW}[!] '{main_cmd}' not found in system{Colors.RESET}")
# Common package mappings
package_map = {
'nmap': ('nmap', 'apt'),
'wireshark': ('wireshark', 'apt'),
'aircrack-ng': ('aircrack-ng', 'apt'),
'hashcat': ('hashcat', 'apt'),
'hydra': ('hydra', 'apt'),
'john': ('john', 'apt'),
'metasploit': ('metasploit-framework', 'apt'),
'msfconsole': ('metasploit-framework', 'apt'),
'ettercap': ('ettercap-text-only', 'apt'),
'sqlmap': ('sqlmap', 'apt'),
'nikto': ('nikto', 'apt'),
'dirb': ('dirb', 'apt'),
'gobuster': ('gobuster', 'apt'),
'ffuf': ('ffuf', 'apt'),
'burpsuite': ('burpsuite', 'apt'),
'zaproxy': ('zaproxy', 'apt'),
'ghidra': ('ghidra', 'apt'),
'netcat': ('netcat-traditional', 'apt'),
'nc': ('netcat-traditional', 'apt'),
'socat': ('socat', 'apt'),
'tcpdump': ('tcpdump', 'apt'),
'tshark': ('tshark', 'apt'),
'python3': ('python3', 'apt'),
'python': ('python3', 'apt'),
'perl': ('perl', 'apt'),
'ruby': ('ruby', 'apt'),
'npm': ('npm', 'apt'),
'git': ('git', 'apt'),
'curl': ('curl', 'apt'),
'wget': ('wget', 'apt'),
'jq': ('jq', 'apt'),
'yq': ('yq', 'snap'),
}
if main_cmd in package_map:
pkg_name, installer = package_map[main_cmd]
if install_package(pkg_name, installer):
# Recheck after installation
if not check_command_exists(main_cmd):
print(f"{Colors.RED}[!] Command still not available after installation{Colors.RESET}")
return False
else:
return False
else:
print(f"{Colors.YELLOW}[?] Try installing manually or specify package name{Colors.RESET}")
print(f"{Colors.CYAN}[?] Package name (or ENTER to skip):{Colors.RESET} ", end='')
pkg = input().strip()
if pkg:
print(f"{Colors.CYAN}[?] Installer (apt/pip/npm/snap) [apt]:{Colors.RESET} ", end='')
inst = input().strip() or 'apt'
if install_package(pkg, inst):
if not check_command_exists(main_cmd):
print(f"{Colors.YELLOW}[*] Continuing anyway...{Colors.RESET}")
else:
return False
else:
return False
# Execute command
COMMAND_HISTORY.append(command)
result = subprocess.run(command, shell=True, check=False)
if result.returncode == 0:
print(f"\n{Colors.GREEN}[β] Command completed successfully{Colors.RESET}")
return True
else:
print(f"\n{Colors.YELLOW}[!] Command exited with code {result.returncode}{Colors.RESET}")
return False
except Exception as e:
print(f"{Colors.RED}[!] Error executing command: {e}{Colors.RESET}")
return False
def run_external_script(script_path):
"""Run external script with automatic interpreter detection"""
if not os.path.exists(script_path):
print(f"{Colors.RED}[!] Script not found: {script_path}{Colors.RESET}")
return False
print(f"\n{Colors.CYAN}[*] Running external script: {os.path.basename(script_path)}{Colors.RESET}")
# Make executable if not already
os.chmod(script_path, 0o755)
# Detect script type
_, ext = os.path.splitext(script_path)
if ext == '.sh':
interpreter = 'bash'
elif ext == '.py':
interpreter = 'python3'
elif ext == '.pl':
interpreter = 'perl'
elif ext == '.rb':
interpreter = 'ruby'
elif ext == '.js':
interpreter = 'node'
else:
# Try to run directly
interpreter = None
# Check for shebang
try:
with open(script_path, 'r') as f:
first_line = f.readline().strip()
if first_line.startswith('#!'):
# Has shebang, run directly
result = subprocess.run([script_path], check=False)
return result.returncode == 0
except:
pass
# Run with interpreter
if interpreter:
if not check_command_exists(interpreter):
print(f"{Colors.YELLOW}[!] {interpreter} not found{Colors.RESET}")
if install_package(interpreter, 'apt'):
pass
else:
return False
COMMAND_HISTORY.append(f"{interpreter} {script_path}")
result = subprocess.run([interpreter, script_path], check=False)
if result.returncode == 0:
print(f"\n{Colors.GREEN}[β] Script completed successfully{Colors.RESET}")
return True
else:
print(f"\n{Colors.YELLOW}[!] Script exited with code {result.returncode}{Colors.RESET}")
return False
else:
# Try direct execution
COMMAND_HISTORY.append(script_path)
result = subprocess.run([script_path], check=False)
return result.returncode == 0
def command_console():
"""Interactive command execution console"""
clear_screen()
print(f"""
{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β{Colors.WHITE} NULLSEC COMMAND CONSOLE{Colors.CYAN} β
β{Colors.DIM} Execute Any Script or Application{Colors.CYAN} β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
{Colors.YELLOW}Features:{Colors.RESET}
β’ Execute any shell command
β’ Run external scripts (.sh, .py, .pl, .rb, .js)
β’ Automatic dependency checking
β’ Install missing tools on-demand
β’ Command history tracking
{Colors.YELLOW}Commands:{Colors.RESET}
{Colors.GREEN}exec <command>{Colors.RESET} - Execute shell command
{Colors.GREEN}run <script>{Colors.RESET} - Run external script (absolute or relative path)
{Colors.GREEN}install <pkg>{Colors.RESET} - Install package via apt/pip/npm
{Colors.GREEN}check <cmd>{Colors.RESET} - Check if command is available
{Colors.GREEN}shodan{Colors.RESET} - Launch Shodan intelligence browser
{Colors.GREEN}history{Colors.RESET} - Show command history
{Colors.GREEN}clear{Colors.RESET} - Clear screen
{Colors.GREEN}help{Colors.RESET} - Show this help
{Colors.GREEN}exit{Colors.RESET} - Return to main menu
{Colors.DIM}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
""")
while True:
try:
cmd = input(f"{Colors.RED}nullsec{Colors.DIM}@{Colors.CYAN}exec{Colors.RESET} > ").strip()
if not cmd:
continue
if cmd == 'exit':
break
elif cmd == 'help':
print(f"""
{Colors.YELLOW}Available Commands:{Colors.RESET}
{Colors.GREEN}exec{Colors.RESET} <command> - Execute any shell command
{Colors.GREEN}run{Colors.RESET} <script> - Run script file (auto-detects interpreter)
{Colors.GREEN}install{Colors.RESET} <package> - Install package (apt/pip/npm)
{Colors.GREEN}check{Colors.RESET} <command> - Check if command exists
{Colors.GREEN}shodan{Colors.RESET} - Launch Shodan intelligence browser
{Colors.GREEN}history{Colors.RESET} - Show command history
{Colors.GREEN}clear{Colors.RESET} - Clear screen
{Colors.GREEN}exit{Colors.RESET} - Return to main menu
{Colors.YELLOW}Examples:{Colors.RESET}
exec nmap -sV 192.168.1.1
run /tmp/exploit.py
run ./custom-script.sh
install metasploit-framework
check wireshark
shodan
""")
elif cmd == 'clear':
clear_screen()
elif cmd == 'shodan':
shodan_browser()
elif cmd == 'history':
if COMMAND_HISTORY:
print(f"\n{Colors.CYAN}Command History:{Colors.RESET}")
for i, h_cmd in enumerate(COMMAND_HISTORY[-20:], 1):
print(f" {Colors.DIM}{i}.{Colors.RESET} {h_cmd}")
else:
print(f"{Colors.YELLOW}[*] No command history{Colors.RESET}")
elif cmd.startswith('exec '):
command = cmd[5:].strip()
if command:
execute_external_command(command)
print(f"\n{Colors.DIM}Press ENTER to continue...{Colors.RESET}")
input()
else:
print(f"{Colors.RED}[!] No command specified{Colors.RESET}")
elif cmd.startswith('run '):
script = cmd[4:].strip()
if script:
# Handle relative paths
if not os.path.isabs(script):
script = os.path.join(os.getcwd(), script)
run_external_script(script)
print(f"\n{Colors.DIM}Press ENTER to continue...{Colors.RESET}")
input()
else:
print(f"{Colors.RED}[!] No script specified{Colors.RESET}")
elif cmd.startswith('install '):
parts = cmd.split()
if len(parts) >= 2:
package = parts[1]
installer = parts[2] if len(parts) > 2 else 'apt'
install_package(package, installer)
else:
print(f"{Colors.RED}[!] Usage: install <package> [apt|pip|npm|snap]{Colors.RESET}")
elif cmd.startswith('check '):
command = cmd[6:].strip()
if command:
if check_command_exists(command):
path = shutil.which(command)
print(f"{Colors.GREEN}[β] {command} is installed: {path}{Colors.RESET}")
else:
print(f"{Colors.RED}[β] {command} not found{Colors.RESET}")
else:
print(f"{Colors.RED}[!] No command specified{Colors.RESET}")
else:
print(f"{Colors.RED}[!] Unknown command. Type 'help' for available commands{Colors.RESET}")
except KeyboardInterrupt:
print(f"\n{Colors.YELLOW}[*] Use 'exit' to return to main menu{Colors.RESET}")
except Exception as e:
print(f"{Colors.RED}[!] Error: {e}{Colors.RESET}")
print(f"{Colors.GREEN}[*] Returning to main menu{Colors.RESET}")
time.sleep(0.5)
def shodan_browser():
"""Interactive Shodan search browser within console"""
clear_screen()
print(f"""
{Colors.BLUE}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β{Colors.WHITE} SHODAN INTELLIGENCE BROWSER{Colors.BLUE} β
β{Colors.DIM} live-Time Internet Device Search{Colors.BLUE} β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
{Colors.YELLOW}Search Types:{Colors.RESET}
{Colors.GREEN}search <query>{Colors.RESET} - Search Shodan (e.g., "apache", "port:22")
{Colors.GREEN}host <ip>{Colors.RESET} - Get detailed host information
{Colors.GREEN}count <query>{Colors.RESET} - Count results for query
{Colors.GREEN}exploits <query>{Colors.RESET} - Search for exploits
{Colors.GREEN}myip{Colors.RESET} - Get your public IP info
{Colors.GREEN}stats <query>{Colors.RESET} - Get statistics for search
{Colors.YELLOW}Actions:{Colors.RESET}
{Colors.GREEN}save <filename>{Colors.RESET} - Save last results to file
{Colors.GREEN}export <ip>{Colors.RESET} - Export IP to target file
{Colors.GREEN}scan <ip>{Colors.RESET} - Quick nmap scan on result
{Colors.YELLOW}Navigation:{Colors.RESET}
{Colors.GREEN}help{Colors.RESET} - Show this help
{Colors.GREEN}clear{Colors.RESET} - Clear screen
{Colors.GREEN}exit{Colors.RESET} - Return to command console
{Colors.DIM}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
""")
# Load API keys
shodan_script = os.path.join(SCRIPT_DIR, "nullsecurity", "shodan-search.sh")
api_keys = []
if os.path.exists(shodan_script):
with open(shodan_script, 'r') as f:
in_keys_section = False
for line in f:
if 'API_KEYS=(' in line:
in_keys_section = True
continue
if in_keys_section:
if ')' in line:
break
if '"' in line:
key = line.strip().strip('"').strip(',').strip('"')
if key and len(key) > 20:
api_keys.append(key)
if not api_keys:
print(f"{Colors.YELLOW}[!] No Shodan API keys found. Using limited mode.{Colors.RESET}\n")
api_key = None
else:
api_key = api_keys[0]
print(f"{Colors.GREEN}[β] Shodan API ready ({len(api_keys)} keys available){Colors.RESET}\n")
last_results = []
while True:
try:
cmd = input(f"{Colors.BLUE}shodan{Colors.DIM}@{Colors.CYAN}browser{Colors.RESET} > ").strip()
if not cmd:
continue
if cmd == 'exit':
break
elif cmd == 'help':
print(f"""
{Colors.YELLOW}Shodan Browser Commands:{Colors.RESET}
{Colors.GREEN}Search:{Colors.RESET}
search apache country:US - Search for Apache servers in US
search product:MySQL - Search for MySQL databases
search port:22 - Search for SSH servers
search webcam - Search for webcams
host 8.8.8.8 - Get info about specific IP
count port:3389 - Count RDP servers
exploits apache 2.4 - Find exploits for Apache 2.4
myip - Get your IP information
stats port:80 - Get statistics for port 80
{Colors.GREEN}Actions:{Colors.RESET}
save results.json - Save results to JSON file
export 192.168.1.1 - Export IP to .shodan_target
scan 192.168.1.1 - Quick nmap scan
{Colors.YELLOW}Search Examples:{Colors.RESET}
search cisco country:CN
search "default password" country:FR
search port:445 country:RU
search product:MongoDB
search org:"Amazon"
search ssl:"self signed"
""")
elif cmd == 'clear':
clear_screen()
elif cmd == 'myip':
if not api_key:
print(f"{Colors.RED}[!] Shodan API key required{Colors.RESET}")
continue
print(f"\n{Colors.CYAN}[*] Fetching your IP information...{Colors.RESET}")
result = subprocess.run(
['curl', '-s', f'https://api.shodan.io/tools/myip?key={api_key}'],
capture_output=True, text=True, timeout=10
)
if result.returncode == 0 and result.stdout:
ip = result.stdout.strip().strip('"')
print(f"{Colors.GREEN}[β] Your Public IP: {Colors.WHITE}{ip}{Colors.RESET}")
# Get host info
result2 = subprocess.run(
['curl', '-s', f'https://api.shodan.io/shodan/host/{ip}?key={api_key}'],
capture_output=True, text=True, timeout=10
)
if result2.returncode == 0 and result2.stdout:
try:
data = json.loads(result2.stdout)
print(f" {Colors.DIM}Country: {data.get('country_name', 'N/A')}{Colors.RESET}")
print(f" {Colors.DIM}City: {data.get('city', 'N/A')}{Colors.RESET}")
print(f" {Colors.DIM}ISP: {data.get('isp', 'N/A')}{Colors.RESET}")
print(f" {Colors.DIM}Org: {data.get('org', 'N/A')}{Colors.RESET}")
if 'ports' in data:
print(f" {Colors.DIM}Open Ports: {', '.join(map(str, data['ports']))}{Colors.RESET}")
except:
pass
else:
print(f"{Colors.RED}[!] Failed to fetch IP info{Colors.RESET}")
elif cmd.startswith('search '):
query = cmd[7:].strip()
if not query:
print(f"{Colors.RED}[!] No search query specified{Colors.RESET}")
continue
if not api_key:
print(f"{Colors.RED}[!] Shodan API key required for searches{Colors.RESET}")
continue
print(f"\n{Colors.CYAN}[*] Searching Shodan for: {Colors.WHITE}{query}{Colors.RESET}")
result = subprocess.run(
['curl', '-s', f'https://api.shodan.io/shodan/host/search?key={api_key}&query={query}'],
capture_output=True, text=True, timeout=30
)
if result.returncode == 0 and result.stdout:
try:
data = json.loads(result.stdout)
if 'matches' in data:
matches = data['matches']
total = data.get('total', len(matches))
print(f"{Colors.GREEN}[β] Found {total} results (showing first {len(matches)}){Colors.RESET}\n")
last_results = []
for i, match in enumerate(matches[:10], 1):
ip = match.get('ip_str', 'N/A')
port = match.get('port', 'N/A')
org = match.get('org', 'Unknown')
country = match.get('location', {}).get('country_code', 'N/A')
product = match.get('product', '')
version = match.get('version', '')
last_results.append(ip)
print(f" {Colors.YELLOW}[{i}]{Colors.RESET} {Colors.WHITE}{ip}:{port}{Colors.RESET}")
print(f" {Colors.DIM}Country: {country} | Org: {org}{Colors.RESET}")
if product:
print(f" {Colors.DIM}Product: {product} {version}{Colors.RESET}")
# Show banner preview
banner = match.get('data', '')
if banner:
preview = banner[:100].replace('\n', ' ').strip()
print(f" {Colors.DIM}Banner: {preview}...{Colors.RESET}")
print()
else:
print(f"{Colors.YELLOW}[*] No results found{Colors.RESET}")
except json.JSONDecodeError:
print(f"{Colors.RED}[!] Invalid response from Shodan{Colors.RESET}")
print(f"{Colors.DIM}{result.stdout[:200]}{Colors.RESET}")
else:
print(f"{Colors.RED}[!] Search failed{Colors.RESET}")
elif cmd.startswith('host '):
ip = cmd[5:].strip()
if not ip:
print(f"{Colors.RED}[!] No IP specified{Colors.RESET}")
continue
if not api_key:
print(f"{Colors.RED}[!] Shodan API key required{Colors.RESET}")
continue
print(f"\n{Colors.CYAN}[*] Fetching information for: {Colors.WHITE}{ip}{Colors.RESET}")
result = subprocess.run(
['curl', '-s', f'https://api.shodan.io/shodan/host/{ip}?key={api_key}'],
capture_output=True, text=True, timeout=10
)
if result.returncode == 0 and result.stdout:
try:
data = json.loads(result.stdout)
print(f"\n{Colors.GREEN}[β] Host Information:{Colors.RESET}")
print(f" {Colors.YELLOW}IP:{Colors.RESET} {data.get('ip_str', 'N/A')}")
print(f" {Colors.YELLOW}Hostnames:{Colors.RESET} {', '.join(data.get('hostnames', ['None']))}")
print(f" {Colors.YELLOW}Country:{Colors.RESET} {data.get('country_name', 'N/A')} ({data.get('country_code', 'N/A')})")
print(f" {Colors.YELLOW}City:{Colors.RESET} {data.get('city', 'N/A')}")
print(f" {Colors.YELLOW}ISP:{Colors.RESET} {data.get('isp', 'N/A')}")
print(f" {Colors.YELLOW}Organization:{Colors.RESET} {data.get('org', 'N/A')}")
if 'ports' in data:
print(f" {Colors.YELLOW}Open Ports:{Colors.RESET} {', '.join(map(str, data['ports']))}")
if 'vulns' in data:
print(f" {Colors.RED}Vulnerabilities:{Colors.RESET} {', '.join(data['vulns'])}")
# Export to target file
target_file = os.path.join(SCRIPT_DIR, '.shodan_target')
with open(target_file, 'w') as f:
f.write(f"TARGET={ip}\n")
f.write(f"PORTS={','.join(map(str, data.get('ports', [])))}\n")
print(f"\n{Colors.GREEN}[β] Target exported to .shodan_target{Colors.RESET}")
last_results = [ip]
except json.JSONDecodeError:
print(f"{Colors.RED}[!] Invalid response{Colors.RESET}")
else:
print(f"{Colors.RED}[!] Failed to fetch host info{Colors.RESET}")
elif cmd.startswith('count '):
query = cmd[6:].strip()
if not query or not api_key:
print(f"{Colors.RED}[!] Query and API key required{Colors.RESET}")
continue
print(f"\n{Colors.CYAN}[*] Counting results for: {Colors.WHITE}{query}{Colors.RESET}")
result = subprocess.run(
['curl', '-s', f'https://api.shodan.io/shodan/host/count?key={api_key}&query={query}'],
capture_output=True, text=True, timeout=10
)
if result.returncode == 0 and result.stdout:
try:
data = json.loads(result.stdout)
total = data.get('total', 0)
print(f"{Colors.GREEN}[β] Total Results: {Colors.WHITE}{total:,}{Colors.RESET}")
except:
print(f"{Colors.RED}[!] Invalid response{Colors.RESET}")
elif cmd.startswith('export '):
ip = cmd[7:].strip()
if ip:
target_file = os.path.join(SCRIPT_DIR, '.shodan_target')
with open(target_file, 'w') as f:
f.write(f"TARGET={ip}\n")
print(f"{Colors.GREEN}[β] Exported {ip} to .shodan_target{Colors.RESET}")
else:
print(f"{Colors.RED}[!] No IP specified{Colors.RESET}")
elif cmd.startswith('scan '):
ip = cmd[5:].strip()
if not ip:
print(f"{Colors.RED}[!] No IP specified{Colors.RESET}")
continue
if not check_command_exists('nmap'):
print(f"{Colors.YELLOW}[!] nmap not installed{Colors.RESET}")
if install_package('nmap', 'apt'):
pass
else:
continue
print(f"\n{Colors.CYAN}[*] Quick nmap scan: {ip}{Colors.RESET}")
subprocess.run(['nmap', '-sV', '-T4', '--top-ports', '100', ip])
elif cmd.startswith('save '):
filename = cmd[5:].strip()
if not filename:
filename = 'shodan_results.json'
if last_results:
with open(filename, 'w') as f:
json.dump({'results': last_results}, f, indent=2)
print(f"{Colors.GREEN}[β] Saved {len(last_results)} results to {filename}{Colors.RESET}")
else:
print(f"{Colors.YELLOW}[!] No results to save{Colors.RESET}")
else:
print(f"{Colors.RED}[!] Unknown command. Type 'help' for available commands{Colors.RESET}")
except KeyboardInterrupt:
print(f"\n{Colors.YELLOW}[*] Use 'exit' to return{Colors.RESET}")
except Exception as e:
print(f"{Colors.RED}[!] Error: {e}{Colors.RESET}")
print(f"{Colors.GREEN}[*] Returning to command console{Colors.RESET}")
time.sleep(0.5)
def clear_screen():
os.system('clear' if os.name == 'posix' else 'cls')
def print_banner():
banner = f"""
{Colors.RED}
ββββ β β ββ βββ βββ ββββββ ββββββ ββββββ
ββ ββ β ββ ββββββββ ββββ βββ β ββ β ββββ ββ
βββ ββ ββββββ ββββββββ ββββ β ββββ ββββ βββ β
ββββ ββββββββ ββββββββ ββββ β ββββββ β ββββ ββββ
ββββ ββββββββββββ βββββββββββββββββββββββββββββββββ βββββ β
β ββ β β ββββ β β β βββ ββ βββ ββ βββ β βββ ββ ββ ββ β β
β ββ β ββββββ β β β β β ββ β β ββ ββ β β β β β β β
β β β βββ β β β β β β β β β β β
β β β β β β β β ββ β
β {Colors.RESET}
{Colors.CYAN}
βΊβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΈ
β β β OFFENSIVE SECURITY OPERATIONS FRAMEWORK β β β
π― Advanced Attack Simulations & Red Team Ops
βΊβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΈ
{Colors.YELLOW}System:{Colors.WHITE} nullsec-Linux (v1.1){Colors.CYAN}
{Colors.GREEN}π₯ 62 Attack Modules {Colors.DIM}β {Colors.RED}β‘ MSF Integration {Colors.DIM}β {Colors.BLUE}π Shodan API{Colors.CYAN}
{Colors.DIM}Developed by {Colors.MAGENTA}bad-antics{Colors.DIM} β github.com/bad-antics{Colors.CYAN}
βΊβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΈ{Colors.RESET}
"""
print(banner)
# Animated loading effect
import sys
sys.stdout.write(f"{Colors.CYAN} [")
for i in range(50):
time.sleep(0.01)
sys.stdout.write("β")
sys.stdout.flush()
sys.stdout.write(f"] {Colors.GREEN}SYSTEM READY{Colors.RESET}\n\n")
sys.stdout.flush()
def print_menu(page=0, page_size=15):
start = page * page_size
end = min(start + page_size, len(MODULES))
total_pages = (len(MODULES) + page_size - 1) // page_size
print(f"\n{Colors.CYAN} βΊ{'β' * 73}βΈ{Colors.RESET}")
print(f"{Colors.CYAN} β{Colors.WHITE} # MODULE CATEGORY DESCRIPTION {Colors.CYAN}β{Colors.RESET}")
print(f"{Colors.CYAN} βΊ{'β' * 73}βΈ{Colors.RESET}")
for mod in MODULES[start:end]:
num = f"{mod['id']:2d}"
name = f"{mod['icon']} {mod['name']}"[:30].ljust(30)
cat = mod['category'][:14].ljust(14)
desc = mod['desc'][:22]
color = Colors.RED if mod['category'] in ['Advanced', 'Malware', 'DDoS', 'ICS'] else \
Colors.YELLOW if mod['category'] in ['Wireless', 'Physical'] else \
Colors.CYAN if mod['category'] in ['Network', 'Web', 'Infrastructure'] else \
Colors.GREEN if mod['category'] in ['Social', 'OPSEC'] else \
Colors.MAGENTA if mod['category'] == 'Credentials' else Colors.WHITE
print(f"{Colors.CYAN} β{Colors.RESET} {Colors.RED}[{num}]{Colors.RESET} {color}{name}{Colors.RESET} {Colors.DIM}{cat}{Colors.RESET} {desc}...{Colors.CYAN}β{Colors.RESET}")
print(f"{Colors.CYAN} βΊ{'β' * 73}βΈ{Colors.RESET}")
print(f"{Colors.DIM} Page {page + 1}/{total_pages} ({len(MODULES)} modules){Colors.RESET}")
print(f"""
{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β{Colors.WHITE} COMMAND CENTER{Colors.CYAN} β
βΊββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΈ
β {Colors.YELLOW}[N]{Colors.RESET} Next Page {Colors.YELLOW}[P]{Colors.RESET} Prev Page {Colors.YELLOW}[A]{Colors.RESET} Run ALL {Colors.YELLOW}[R]{Colors.RESET} Random{Colors.CYAN} β
β {Colors.YELLOW}[C]{Colors.RESET} Category {Colors.GREEN}[E]{Colors.RESET} Execute {Colors.YELLOW}[S]{Colors.RESET} Search {Colors.BLUE}[H]{Colors.RESET} Shodan{Colors.CYAN} β
β {Colors.RED}[M]{Colors.RESET} Metasploit {Colors.YELLOW}[F]{Colors.RESET} Framework {Colors.MAGENTA}[T]{Colors.RESET} Tools {Colors.YELLOW}[X]{Colors.RESET} Credits{Colors.CYAN} β
β {Colors.MAGENTA}[I]{Colors.RESET} AI Console {Colors.GREEN}[Q]{Colors.RESET} Quit {Colors.DIM}[1-68]{Colors.RESET} Module # {Colors.CYAN}β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
""")
def run_module(mod, external=False):
script_path = os.path.join(ATTACK_DIR, mod['script'])
if not os.path.exists(script_path):
print(f"{Colors.YELLOW}[*] Module {mod['name']} initializing...{Colors.RESET}")
time.sleep(0.5)
run_generic_attack(mod)
return
print(f"\n{Colors.GREEN}[*] Launching: {mod['icon']} {mod['name']}{Colors.RESET}")
time.sleep(0.5)
if external:
subprocess.Popen([
'mate-terminal',
f'--title=β {mod["name"]} β ',
'--geometry=120x40',
'-e', f'bash -c "{script_path}; echo; echo Press ENTER to close...; read"'
])
print(f"{Colors.GREEN}[β] Launched in external terminal{Colors.RESET}")
time.sleep(1)
else:
subprocess.run(['bash', script_path])
print(f"\n{Colors.YELLOW}[*] Operation complete. Press ENTER to continue...{Colors.RESET}")
input()
def launch_ai_console():
"""Launch NULLSEC AI Console"""
ai_script = os.path.join(SCRIPT_DIR, 'nullsec-ai.py')
if os.path.exists(ai_script):
subprocess.run([sys.executable, ai_script])
else:
print(f"{Colors.RED}[!] NULLSEC AI module not found{Colors.RESET}")
print(f"{Colors.YELLOW}[*] Press ENTER to continue...{Colors.RESET}")
input()
def run_module_with_ai(mod, target=None):
"""Run a module with AI assistance"""
try:
# Import the AI module
sys.path.insert(0, SCRIPT_DIR)
from importlib import import_module
ai_module = import_module('nullsec-ai'.replace('-', '_'))
ai = ai_module.NullSecAI()
ai.auto_execute_attack(mod['name'], mod['category'], target)
except ImportError:
print(f"{Colors.YELLOW}[!] AI module not available, running standard module{Colors.RESET}")
run_module(mod)
except Exception as e:
print(f"{Colors.RED}[!] AI error: {e}{Colors.RESET}")
run_module(mod)
def shodan_search():
"""Launch Shodan search interface"""
script_path = os.path.join(ATTACK_DIR, 'shodan-search.sh')
if os.path.exists(script_path):
subprocess.run(['bash', script_path])
else:
print(f"{Colors.RED}[!] Shodan module not found{Colors.RESET}")
print(f"\n{Colors.YELLOW}[*] Press ENTER to continue...{Colors.RESET}")
input()
def tool_launcher_menu():
"""Launch security tools menu"""
clear_screen()
print(f"""
{Colors.BLUE}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β{Colors.WHITE} SECURITY TOOLS LAUNCHER{Colors.BLUE} β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
{Colors.CYAN}[1]{Colors.RESET} π¦ Wireshark - Network traffic analyzer
{Colors.CYAN}[2]{Colors.RESET} π§ Ettercap - MITM attack suite
{Colors.CYAN}[3]{Colors.RESET} π₯ BurpSuite - Web application testing
{Colors.CYAN}[4]{Colors.RESET} π― Metasploit - Exploitation framework
{Colors.CYAN}[5]{Colors.RESET} β‘ OWASP ZAP - Web app scanner
{Colors.CYAN}[6]{Colors.RESET} πΎ Ghidra - Reverse engineering
{Colors.CYAN}[7]{Colors.RESET} π SQLMap - SQL injection tool
{Colors.CYAN}[0]{Colors.RESET} β Back to main menu
{Colors.YELLOW} [>] Select tool:{Colors.RESET} """)
choice = input().strip()
tool_launcher = os.path.join(SCRIPT_DIR, 'tool-launcher.sh')
tools = {
'1': 'wireshark',
'2': 'ettercap',
'3': 'burpsuite',
'4': 'msfconsole',
'5': 'zaproxy',
'6': 'ghidra',
'7': 'sqlmap'
}
if choice in tools and os.path.exists(tool_launcher):
# Check for Shodan target
target_file = os.path.join(SCRIPT_DIR, '.shodan_target')
target = ''
if os.path.exists(target_file):
with open(target_file, 'r') as f:
for line in f:
if line.startswith('TARGET='):
target = line.split('=')[1].strip()
break
print(f"\n{Colors.GREEN}[*] Launching {tools[choice]}...{Colors.RESET}")
subprocess.run(['bash', tool_launcher, tools[choice], target])
time.sleep(1)
elif choice != '0':
print(f"{Colors.RED}[!] Invalid selection{Colors.RESET}")
time.sleep(1)
def run_generic_attack(mod):
"""Generate attack output for modules without dedicated scripts"""
clear_screen()
print(f"""
{Colors.RED}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
{Colors.RED}β{Colors.RESET} {Colors.WHITE}{mod['icon']} NULLSEC {mod['name'].upper()} {mod['icon']}{Colors.RESET}
{Colors.RED}β{Colors.RESET} {Colors.CYAN}[ {mod['category']} Operations ]{Colors.RESET}
{Colors.RED}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
""")
time.sleep(0.5)
# Category-specific attack steps
steps_by_category = {
"Network": [
("Scanning network topology", 0.4),
("Enumerating live hosts", 0.5),
("Fingerprinting services", 0.4),
("Identifying vulnerabilities", 0.6),
("Crafting exploit payloads", 0.5),
("Establishing network foothold", 0.7),
("Pivoting through subnets", 0.4),
("Exfiltrating network data", 0.5),
],
"Wireless": [
("Scanning wireless spectrum", 0.5),
("Capturing beacon frames", 0.4),
("Analyzing signal patterns", 0.4),
("Cloning target signatures", 0.6),
("Injecting malicious packets", 0.5),
("Intercepting communications", 0.6),
("Establishing rogue AP", 0.4),
("Harvesting credentials", 0.5),
],
"Web": [
("Crawling web application", 0.4),
("Fuzzing input parameters", 0.5),
("Identifying injection points", 0.5),
("Bypassing WAF protections", 0.6),
("Exploiting vulnerability", 0.7),
("Escalating privileges", 0.5),
("Deploying backdoor", 0.4),
("Exfiltrating database", 0.6),
],
"Malware": [
("Generating payload", 0.4),
("Encrypting malware binary", 0.5),
("Bypassing AV detection", 0.6),
("Establishing persistence", 0.5),
("Hooking system calls", 0.4),
("Elevating to SYSTEM", 0.6),
("Spreading to network", 0.5),
("Activating payload", 0.7),
],
"Social": [
("Gathering OSINT on targets", 0.5),
("Crafting pretexts", 0.4),
("Building phishing infrastructure", 0.5),
("Sending attack vectors", 0.6),
("Capturing victim interaction", 0.5),