-
Notifications
You must be signed in to change notification settings - Fork 1
/
eclipse.py
1079 lines (892 loc) · 25 KB
/
eclipse.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
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
import sys
import random as rd
import os
import time
import threading as thd
import subprocess as sp
import signal
import os.path
import platform
import argparse as ag
import socket as so
#name vars
class nvar:
version="1.0 Beta"
user="clu3bot"
date="2023"
project="Eclipse"
#colar vars
class color:
lightblue='\033[1;34m' #light blue
lightred='\033[1;31m' #light red
lightgreen='\033[1;32m' #lightgreen
red='\033[0;31m' #red
yellow='\033[1;33m' #yellow
none='\033[0m' #no color
purple='\033[1;35m' #purple
cyan='\033[0;36m' #cyan
green='\033[0;32m' #green
#clears terminal when called
def clear():
os.system('cls' if os.name == 'nt' else 'clear')
#captures ctrl c
def handleexit():
def signal_handler(signal, frame):
clear()
sys.exit(0)
signal.signal(signal.SIGINT, signal_handler)
#checks for super user perms
def permissions():
clear()
if not os.environ.get("SUDO_UID") and os.geteuid() != 0:
print(color.lightred + "You need to run this script with sudo or as root.")
time.sleep(1)
quit()
#varifies os is Linux or quits
def getos():
osys=platform.system()
if osys != "Linux":
print(color.lightred + "This program only runs on Linux operating systems.")
time.sleep(2)
quit()
#checks for dns connection by pinging google
def internet_on(host="8.8.8.8", port=53, timeout=3):
try:
so.setdefaulttimeout(timeout)
so.socket(so.AF_INET, so.SOCK_STREAM).connect((host, port))
return True
except so.error as ex:
print(ex)
return False
#prompts user when a part of the script requires internet
def nointernetprompt():
clear()
print (color.lightred+"This Option Requires Internet.."+color.none)
time.sleep(2)
#runs the iptracing script
def iptrace():
if internet_on() is True:
os.system("sudo perl scrp/iptrace.pl")
else:
nointernetprompt()
#checks if the flag created by install.py exists to varify install requirements have been checked.
def check_install():
check = sp.getoutput("cat bin/config/eclipse_config_done_flag.config")
if check == 'done':
pass
else:
print(color.red+"Run install.py")
exit()
#runs the update script
def update():
os.system("sudo bash updates.sh")
#prompts user to check for updates
def updateprompt():
clear()
print ("Would you like to check for updates? (y/n)")
updatechoice = input(":")
if updatechoice.lower() == "y":
update()
elif updatechoice.lower() == "n":
time.sleep(0.1)
else:
clear()
print (color.lightred+"Invalid Selection.."+color.none)
time.sleep(2)
updateprompt()
#rewrite
def monitorprompt():
clear()
#gets the wireless interface name and puts it to a variable
def getinterface():
from scrp.inthandler.tmp.stint import var
global interfacecurrent
interfacecurrent = var
#runs the selectint script
def selectint():
os.system("sudo bash scrp/inthandler/selectint.sh")
getinterface()
def check_essid():
if os.path.exists("scrp/tmp/essid.csv"):
essid = sp.getoutput("cat scrp/tmp/essid.csv")
return essid
else:
essid = "N/A"
return essid
def cleanup():
os.system("sudo bash scrp/tmp_cleanup.sh")
def monitoron():
os.system("sudo bash scrp/monhandler/monitormode.sh")
main_menu()
def monitoroff():
os.system("sudo bash scrp/monhandler/managedmode.sh")
def selectintmainmenu():
os.system("sudo bash scrp/inthandler/selectint.sh")
getinterface()
main_menu()
def selectnet():
clear()
os.system("sudo bash scrp/networkhandler/networkselect.sh")
main_menu()
def publicip(): #fix to check internet/dns
if internet_on() is True:
with open("scrp/publicip.py") as f:
exec(f.read())
main_menu()
else:
print ("This requires internet.. Returning to Main Menu")
time.sleep(2)
#function to call system info script
def sysinfo():
clear()
os.system("sudo bash scrp/sysinfo.sh")
input ("Press any key to return to Main Menu..")
main_menu()
def devmisc(): #fix
time.sleep(1)
def sms():
clear()
os.system("sudo bash scrp/sms.sh")
###
#menu for spoof mac
spoofmenu_actions = {}
def spoof_menu():
handleexit()
var = sp.getoutput("cat tmp/var.csv")
clear()
print ("Mac Adress Options")
print ("By "+nvar.user+", "+nvar.date)
print ("Detailed documentation on the cora wiki found on https://github.com/clu3bot/cora\n\n") ##fix
print ("[0] Set Mac Address to a random Mac\n")
print ("[1] Choose your own Mac address"+" [2] Reset Mac address to original\n")
print ("[b] back")
print ("[x] exit")
print ("\n")
choice = input("\n>> ")
spoofexec_menu(choice)
return
#decides which option to call
def spoofexec_menu(choice):
clear()
ch = choice.lower()
if ch == '':
spoofmenu_actions['main_menu']()
else:
try:
spoofmenu_actions[ch]()
except KeyError:
print (color.lightred + "Invalid selection, please try again.\n" + color.lightblue)
time.sleep(1)
spoofmenu_actions['main_menu']()
return
#back to the main menu when called
def back():
menu_actions['main_menu']()
#exits program when called
def exit():
sys.exit()
#defines the options for the main menu
def spoofmacoption0():
print ("random mac")
main_menu()
def spoofmacoption1():
print ("choose mac")
wifi_menu()
def spoofmacoption2():
print ("reset to original mac")
bluetooth_menu()
spoofmenu_actions = {
'main_menu': spoof_menu,
'0': spoofmacoption0,
'1': spoofmacoption1,
'2': spoofmacoption2,
'b': back,
'x': exit,
}
###
misc_menu_actions = {}
def misc_menu():
handleexit()
var = sp.getoutput("cat temp/var.csv")
clear()
print ("Misc Tool Options")
print ("By "+nvar.user+", "+nvar.date)
print ("Detailed documentation on the cora wiki found on https://github.com/clu3bot/\n\n") ##fix
print ("[0] Search for a tool.\n")
print ("[1] Dev Terminal"
)
print ("[2] Send Sms")
print ("[3] IP Trace / Geo Trace")
print ("[4] Payload Tools")
print ("[5] Hardware Tools")
print ("[6] Cryptography Tools"+" [b] back")
print ("[7] Misc Tools"+" [x] exit")
print ("\n")
choice = input("\n>> ")
misc_exec_menu(choice)
return
#decides which option to call
def misc_exec_menu(choice):
clear()
ch = choice.lower()
if ch == '':
misc_menu_actions['main_menu']()
else:
try:
misc_menu_actions[ch]()
except KeyError:
print (color.lightred + "Invalid selection, please try again.\n" + color.lightblue)
time.sleep(1)
misc_menu_actions['main_menu']()
return
#back to the main menu when called
def back():
misc_menu_actions['main_menu']()
#exits program when called
def exit():
sys.exit()
#defines the options for the main menu
def miscoption0():
print ("option 0")
misc_menu()
def miscoption1():
devmisc()
def miscoption2():
sms()
def miscoption3():
iptrace()
def miscoption4():
print ("option 4")
misc_menu()
def miscoption5():
print ("option 5")
misc_menu()
def miscoption6():
print ("option 6")
misc_menu()
def miscoption7():
print ("option 7")
misc_menu()
def miscoption8():
print ("option 8")
misc_menu()
def miscoption9():
print ("option 9")
misc_menu()
def miscoption10():
print ("option 10")
misc_menu()
def miscoption11():
print ("option 11")
misc_menu()
def miscoption12():
print ("option 12")
misc_menu()
def miscoption13():
print ("option 13")
misc_menu()
#binds the options to numbers
misc_menu_actions = {
'main_menu': misc_menu,
'0': miscoption0,
'1': miscoption1,
'2': miscoption2,
'3': miscoption3,
'4': miscoption4,
'5': miscoption5,
'6': miscoption6,
'7': miscoption7,
'8': miscoption8,
'9': miscoption9,
'10': miscoption10,
'11': miscoption11,
'12': miscoption12,
'13': miscoption13,
'b': back,
'x': exit,
}
###
crypto_menu_actions = {}
def crypto_menu():
handleexit()
var = sp.getoutput("cat temp/var.csv")
clear()
print ("Cryptography Tool Options")
print ("By "+nvar.user+", "+nvar.date)
print ("Detailed documentation on the cora wiki found on https://github.com/clu3bot/cora\n\n") ##fix
print ("[1] Base64 Encode/Decode"+" [8] ")
print ("[2] Rot Cypher Encode/Decode"+" [9] ")
print ("[b] back")
print ("[x] exit")
print ("\n")
choice = input("\n>> ")
crypto_exec_menu(choice)
return
#decides which option to call
def crypto_exec_menu(choice):
clear()
ch = choice.lower()
if ch == '':
crypto_menu_actions['main_menu']()
else:
try:
crypto_menu_actions[ch]()
except KeyError:
print (color.lightred + "Invalid selection, please try again.\n" + color.lightblue)
time.sleep(1)
crypto_menu_actions['main_menu']()
return
#back to the main menu when called
def back():
menu_actions['main_menu']()
#exits program when called
def exit():
sys.exit()
#defines the options for the main menu
def cryptooption1():
os.system("python3 etc/crypto/base-64.py")
crypto_menu()
def cryptooption2():
os.system("python3 etc/crypto/rot-cypher.py")
crypto_menu()
def cryptooption3():
print ("option 3")
crypto_menu()
def cryptooption4():
print ("option 4")
crypto_menu()
def cryptooption5():
print ("option 5")
crypto_menu()
def cryptooption6():
print ("option 6")
crypto_menu()
def cryptooption7():
print ("option 7")
crypto_menu()
def cryptooption8():
print ("option 8")
crypto_menu()
def cryptooption9():
print ("option 9")
crypto_menu()
def cryptooption10():
print ("option 10")
crypto_menu()
def cryptooption11():
print ("option 11")
crypto_menu()
def cryptooption12():
print ("option 12")
crypto_menu()
def cryptooption13():
print ("option 13")
crypto_menu()
#binds the options to numbers
crypto_menu_actions = {
'main_menu': crypto_menu,
'1': cryptooption1,
'2': cryptooption2,
'3': cryptooption3,
'4': cryptooption4,
'5': cryptooption5,
'6': cryptooption6,
'7': cryptooption7,
'8': cryptooption8,
'9': cryptooption9,
'10': cryptooption10,
'11': cryptooption11,
'12': cryptooption12,
'13': cryptooption13,
'b': back,
'x': exit,
}
###
hardware_menu_actions = {}
def hardware_menu():
handleexit()
var = sp.getoutput("cat temp/var.csv")
clear()
print ("Hardware Tool Options")
print ("By "+nvar.user+", "+nvar.date)
print ("Detailed documentation on the cora wiki found on https://github.com/clu3bot/cora\n\n") ##fix
print ("[1] Flash Bin Files to Development Boards")
print ("[2] Burn ISO File to Live USB")
print ("[3] View Hardware Info\n")
print ("[b] back")
print ("[x] exit")
print ("\n")
choice = input("\n>> ")
hardware_exec_menu(choice)
return
#decides which option to call
def hardware_exec_menu(choice):
clear()
ch = choice.lower()
if ch == '':
hardware_menu_actions['main_menu']()
else:
try:
hardware_menu_actions[ch]()
except KeyError:
print (color.lightred + "Invalid selection, please try again.\n" + color.lightblue)
time.sleep(1)
hardware_menu_actions['main_menu']()
return
#back to the main menu when called
def back():
menu_actions['main_menu']()
#exits program when called
def exit():
sys.exit()
#defines the options for the main menu
def hardwareoption0():
print ("option 0")
hardware_menu()
def hardwareoption1():
print ("wifi option 1")
hardware_menu()
def hardwareoption2():
print ("option 2")
hardware_menu()
def hardwareoption3():
print ("option 3")
hardware_menu()
#binds the options to numbers
hardware_menu_actions = {
'main_menu': hardware_menu,
'0': hardwareoption0,
'1': hardwareoption1,
'2': hardwareoption2,
'3': hardwareoption3,
'b': back,
'x': exit,
}
###
scan_menu_actions = {}
def scan_menu():
handleexit()
var = sp.getoutput("cat temp/var.csv")
clear()
print ("Prefabricated Scan Options")
print ("By "+nvar.user+", "+nvar.date)
print ("Detailed documentation on the cora wiki found on https://github.com/clu3bot/cora\n\n") ##fix
print ("[1] ARP Scan")
print ("[2] NMAP Scan")
print ("[3] Verbose NMAP Scan")
print ("[4] Bluetooth AP Scan")
print ("[5] Wireless AP Dump")
print ("[6] Gobuster Scan")
print (" [b] back")
print (" [x] exit")
print ("\n")
choice = input("\n>> ")
scan_exec_menu(choice)
return
#decides which option to call
def scan_exec_menu(choice):
clear()
ch = choice.lower()
if ch == '':
scan_menu_actions['main_menu']()
else:
try:
scan_menu_actions[ch]()
except KeyError:
print (color.lightred + "Invalid selection, please try again.\n" + color.lightblue)
time.sleep(1)
scan_menu_actions['main_menu']()
return
#back to the main menu when called
def back():
menu_actions['main_menu']()
#exits program when called
def exit():
sys.exit()
#defines the options for the main menu
def scanoption0():
print ("option 0")
scan_menu()
def scanoption1():
print ("wifi option 1")
scan_menu()
def scanoption2():
print ("option 2")
scan_menu()
def scanoption3():
print ("option 3")
scan_menu()
def scanoption4():
print ("option 4")
scan_menu()
def scanoption5():
print ("option 5")
scan_menu()
def scanoption6():
print ("option 6")
scan_menu()
#binds the options to numbers
scan_menu_actions = {
'main_menu': scan_menu,
'0': scanoption0,
'1': scanoption1,
'2': scanoption2,
'3': scanoption3,
'4': scanoption4,
'5': scanoption5,
'6': scanoption6,
'b': back,
'x': exit,
}
###
bluetooth_menu_actions = {}
def bluetooth_menu():
handleexit()
var = sp.getoutput("cat temp/var.csv")
clear()
print ("Bluetooth Tool Options")
print ("By "+nvar.user+", "+nvar.date)
print ("Detailed documentation on the cora wiki found on https://github.com/clu3bot/cora\n\n") ##fix
print ("[1] Bluetooth Dos"+" [3] View Bluetooth Mac")
print ("[2] Spoof Bluetooth Mac")
print ("[b] back")
print ("[x] exit")
print ("\n")
choice = input("\n>> ")
wifi_exec_menu(choice)
return
#decides which option to call
def bluetooth_exec_menu(choice):
clear()
ch = choice.lower()
if ch == '':
bluetooth_menu_actions['main_menu']()
else:
try:
bluetooth_menu_actions[ch]()
except KeyError:
print (color.lightred + "Invalid selection, please try again.\n" + color.lightblue)
time.sleep(1)
bluetooth_menu_actions['main_menu']()
return
#back to the main menu when called
def back():
bluetooth_menu_actions['main_menu']()
#exits program when called
def exit():
sys.exit()
#defines the options for the main menu
def btoption1():
print ("wifi option 1")
bluetooth_menu()
def btoption2():
print ("option 2")
bluetooth_menu()
def btoption3():
print ("option 3")
bluetooth_menu()
#binds the options to numbers
bluetooth_menu_actions = {
'main_menu': bluetooth_menu,
'1': btoption1,
'2': btoption2,
'3': btoption3,
'b': back,
'x': exit,
}
###wifi
def beaconspam():
monitorprompt()
os.system("sudo python3 scrp/wifitools/beacon.py")
def arpscan():
os.system("sudo bash scrp/wifitools/arpscan.sh")
main_menu()
def authdos():
pass
###
def beaconspamcall():
beaconspam()
def authdoscall():
authdos()
def rougeapcall():
os.system("sudo bash scrp/wifitools/rougeap.sh")
def deauthcall():
os.system("sudo bash scrp/wifitools/deauth.sh")
def tkipcall():
os.system("sudo bash scrp/wifitools/tkip.sh")
def apdumpcall():
os.system("sudo bash scrp/wifitools/apdump.sh")
def arpscancall():
arpscan()
###
wifi_menu_actions = {}
def wifi_menu():
handleexit()
var = sp.getoutput("cat temp/var.csv")
clear()
print ("Wifi Tool Options")
print ("By "+nvar.user+", "+nvar.date)
print ("Detailed documentation on the cora wiki found on https://github.com/clu3bot/cora\n\n") ##fix
print ("[1] Beacon/AP Spam")
print ("[2] Auth Dos Attack")
print ("[3] Rouge AP")
print ("[4] Deauth Airplay Attack")
print ("[5] TKIP Attack")
print ("[6] AP Dump (See All nearby APs and Macs)"+" ["+color.lightred+"b"+color.none+"] back")
print ("[7] ARP Scan"+" ["+color.lightred+"x"+color.none+"] exit")
print ("\n")
choice = input("\n>> ")
wifi_exec_menu(choice)
return
#decides which option to call
def wifi_exec_menu(choice):
clear()
ch = choice.lower()
if ch == '':
wifi_menu_actions['main_menu']()
else:
try:
wifi_menu_actions[ch]()
except KeyError:
print (color.lightred + "Invalid selection, please try again.\n" + color.lightblue)
time.sleep(1)
wifi_menu_actions['main_menu']()
return
#back to the main menu when called
def back():
menu_actions['main_menu']()
#exits program when called
def exit():
sys.exit()
#defines the options for the main menu
def wifioption1():
beaconspamcall()
def wifioption2():
authdoscall()
def wifioption3():
rougeapcall()
def wifioption4():
deauthcall()
def wifioption5():
tkipcall()
def wifioption6():
apdumpcall()
def wifioption7():
arpscancall()
####
#binds the options to numbers
wifi_menu_actions = {
'main_menu': wifi_menu,
'1': wifioption1,
'2': wifioption2,
'3': wifioption3,
'4': wifioption4,
'5': wifioption5,
'6': wifioption6,
'7': wifioption7,
'b': back,
'x': exit,
}
#settings menu
def settings():
clear()
if os.path.isfile("bin/config/eclipse_config_animate.config"):
pass
else:
clear()
print ("It Appears your copy of Eclipse is missing a config file, would you like to restore to default?")
optionset = input("\n(y/n)\n")
optionset = optionset.lower()
if optionset == "y":
os.system("echo 1 > bin/config/eclipse_config_animate.config")
print ("Restart Eclipse to update changes..")
time.sleep(1)
print ("Terminating..")
time.sleep(1)
quit()
else:
pass
animate = sp.getoutput("cat bin/config/eclipse_config_animate.config")
print ("Settings Menu:\n")
if animate == "1":
print ("[1] Intro Inimation ["+color.green+"On"+color.none+"]")
elif animate == "0":
print ("[1] Intro Inimation ["+color.lightred+"Off"+color.none+"]")
else:
pass
print ("[b] back")
setting = input("\nSelect to Toggle:")
if setting == "1":
if animate == "1":
animate = 0
os.system("echo 0 > bin/config/eclipse_config_animate.config")
settings()
elif animate == "0":
animate = 1
os.system("echo 1 > bin/config/eclipse_config_animate.config")
print ("Restart Eclipse to update changes..")
settings()
elif setting == "b":
main_menu()
else:
pass
settings()
def check_essid():
if os.path.isfile("scrp/networkhandler/tmp/network_finale_tmp.csv"):
global essid
essid = sp.getoutput("cat scrp/networkhandler/tmp/network_finale_tmp.csv")
else:
essid = color.red+"Not Selected"+color.none
pass
#defines the main menu
menu_actions = {}
def main_menu():
getinterface()
handleexit()
check_essid()
clear()
#astatus = sp.getoutput("cat scrp/etc/animationstatus.csv")
#if astatus == "0":
# animation()
#elif astatus == "1":
# pass
#else:
# print(color.lightred+"Error")
clear()
print(r"""
██████████ ████ ███
░░███░░░░░█ ░░███ ░░░
░███ █ ░ ██████ ░███ ████ ████████ █████ ██████
░██████ ███░░███ ░███ ░░███ ░░███░░███ ███░░ ███░░███
░███░░█ ░███ ░░░ ░███ ░███ ░███ ░███░░█████ ░███████
░███ ░ █░███ ███ ░███ ░███ ░███ ░███ ░░░░███░███░░░
██████████░░██████ █████ █████ ░███████ ██████ ░░██████
░░░░░░░░░░ ░░░░░░ ░░░░░ ░░░░░ ░███░░░ ░░░░░░ ░░░░░░
░███
█████
░░░░░
""")
print ("By "+nvar.user+", "+nvar.date+ " Version: "+color.green+ nvar.version+color.none+" Interface: "+color.green+interfacecurrent+color.none+ " Network: "+color.green+essid+color.none)
print ("Detailed documentation on the eclipse wiki found on https://github.com/clu3bot/eclipse\n\n")
print ("[0] Search for a tool.\n")
print ("[1] WiFi Tools"+" [7] Spoof Mac Adress")
print ("[2] Bluetooth Tools"+" [8] Enable Monitor Mode")
print ("[3] Prefabricated Scans"+" [9] Disable Monitor Mode")
print (" [10] Select a Wireless Interface")
print (" [11] Select a Target Network")
print ("[4] Hardware Tools"+" [12] Show Public IP")
print ("[5] Cryptography Tools"+" [13] Show System Info")
print ("[6] Misc Tools"+" ["+color.lightred+"x"+color.none+"] exit")
print (" ["+color.lightred+"u"+color.none+"] check for updates")
print (" ["+color.lightred+"s"+color.none+"] settings")
print ("\n")
choice = input("\n>> ")
exec_menu(choice)
return
#decides which option to call
def exec_menu(choice):
clear()
ch = choice.lower()
if ch == '':
menu_actions['main_menu']()
else:
try:
menu_actions[ch]()
except KeyError:
print (color.lightred + "Invalid selection, please try again.\n" + color.lightblue)
time.sleep(1)
menu_actions['main_menu']()
return
#back to the main menu when called
def back():
menu_actions['main_menu']()
#exits program when called
def exit():
sys.exit()
#defines the options for the main menu
def option0():
time.sleep(2)
# searchvar()
def option1():
wifi_menu()
def option2():
bluetooth_menu()
def option3():
scan_menu()
def option5():
hardware_menu()
def option6():
crypto_menu()
def option7():
misc_menu()