File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 2727def main ():
2828 "Initialize system, search for modules and encoder"
2929 init (autoreset = True ) # Colorama init
30+ javaCheck ()
3031 output .cls ()
3132 output .banner ()
3233 loadModules ()
@@ -35,6 +36,7 @@ def main():
3536def main_quick ():
3637 "Fast payload generation using command line arguments"
3738 init (autoreset = True )
39+ javaCheck ()
3840 output .cls ()
3941 output .banner ()
4042 loadModules ()
@@ -80,6 +82,13 @@ def main_quick():
8082 else :
8183 output .error ("Module '" + modulename + "' does not exist" )
8284
85+ def javaCheck ():
86+ ret = os .system ("java -version" )
87+ if ret > 0 :
88+ output .error ("Java not installed or Java not in PATH Variable" )
89+ sys .exit (1 )
90+
91+
8392def loadModules ():
8493 output .info ("Loading Modules..." )
8594 global modules
Original file line number Diff line number Diff line change @@ -22,4 +22,4 @@ def banner():
2222 print (" /____/\n " )
2323 print (" \x1B [3mby ThoughtfulDev | github.com/ThoughtfulDev\x1B [23m\n " )
2424 print (" \x1B [3mGet your USB Rubber Ducky up and running faster\x1B [23m" )
25- print (Fore .WHITE + " \t \t Version " + Fore .MAGENTA + "1.2.0 \n " )
25+ print (Fore .WHITE + " \t \t Version " + Fore .MAGENTA + "1.2.1 \n " )
You can’t perform that action at this time.
0 commit comments