File tree Expand file tree Collapse file tree 1 file changed +13
-14
lines changed
Expand file tree Collapse file tree 1 file changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -681,7 +681,19 @@ def run():
681681 """ Main function of script. hooks rest of functions
682682 """
683683
684- # global variables brought down
684+ # Colors for windows
685+ if parseArgs .colour and os .sys .platform == "win32" :
686+ try :
687+ import colorama
688+ except ImportError :
689+ print (
690+ "You do not have colorama installed. if you want to run with colors, please run:" )
691+ print (
692+ "\" pip install colorama\" in your terminal so that windows can use colors." )
693+ print ("Printing output without colors" )
694+ parseArgs .colour = False
695+ else :
696+ colorama .init ()
685697
686698 if (len (argv ) == 1 and os .sys .stdin .isatty ()):
687699 parser .print_help () # runs if given no arguements
@@ -713,19 +725,6 @@ def run():
713725 text = str (os .sys .stdin .read ())
714726 terms .extend (text .split ())
715727
716- # Colors for windows
717- if parseArgs .colour and os .sys .platform == "win32" :
718- try :
719- import colorama
720- except ImportError :
721- print (
722- "You do not have colorama installed. if you want to run with colors, please run:" )
723- print (
724- "\" pip install colorama\" in your terminal so that windows can use colors." )
725- print ("Printing output without colors" )
726- parseArgs .colour = False
727- else :
728- colorama .init ()
729728 searchsploitout ()
730729
731730
You can’t perform that action at this time.
0 commit comments