File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ def execute(cmd):
91
91
colors .END )
92
92
elif cmd .startswith ('target' ):
93
93
target = '' .join (cmd .split ()[1 :])
94
- if not target . endswith ( '.txt ' ):
94
+ if not target in os . listdir ( SessionParameters . INIT_DIR + ' \\ data ' ):
95
95
return
96
96
print (colors .BLUE + '[i] Target changed to {}' .format (target ))
97
97
SessionParameters .IP_LIST = SessionParameters .INIT_DIR + \
@@ -395,11 +395,16 @@ def main():
395
395
'[?] Use ip_list.txt as target list? [y/n] ' +
396
396
colors .END )).strip ()
397
397
if answ .lower () == 'n' :
398
- os .system ("ls data" )
398
+ for item in os .listdir ('data' ):
399
+ print (colors .BLUE ,
400
+ item ,
401
+ colors .END ,
402
+ end = ' ' )
403
+ print ('\n ' )
399
404
SessionParameters .IP_LIST = SessionParameters .INIT_DIR + '\\ data\\ ' + \
400
405
input_check (
401
406
'[=] Choose your target IP list, eg. ip_list.txt ' ,
402
- allow_blank = False )
407
+ choices = os . listdir ( 'data' ) )
403
408
while True :
404
409
try :
405
410
cmd = input (
You can’t perform that action at this time.
0 commit comments