File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 33import string
44import random
55
6-
7- import blessings
8-
9- t = blessings .Terminal ()
6+ import lib .output
7+ import lib .settings
108
119
1210def random_file_name (acceptable = string .ascii_letters , length = 7 ):
@@ -31,11 +29,10 @@ def load_exploits(path, node="exploits"):
3129 retval = []
3230 file_list = os .listdir (path )
3331 if len (file_list ) != 1 :
34- print ("\n [{}] total of {} files discovered select one" .format (
35- t .green ("+" ), len (file_list )))
32+ lib .output .info ("total of {} exploit files discovered for use, select one" .format (len (file_list )))
3633 for i , f in enumerate (file_list , start = 1 ):
3734 print ("{}. {}" .format (i , f [:- 5 ]))
38- action = raw_input (" \n <" + t . cyan ( "AUTOSPLOIT" ) + ">$ " )
35+ action = raw_input (lib . settings . AUTOSPLOIT_PROMPT )
3936 selected_file = file_list [int (action ) - 1 ]
4037 else :
4138 selected_file = file_list [0 ]
You can’t perform that action at this time.
0 commit comments