File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -79,16 +79,20 @@ def run(self):
79
79
self .google_lfi (take_number )
80
80
print (Fore .GREEN + Style .BRIGHT + "Search finished." )
81
81
elif a == "2" :
82
- url_list_path = input (Fore .CYAN + Style .BRIGHT + "Enter the URL list file path: " )
83
- with open (url_list_path , 'r' ) as f :
84
- urls = f .readlines ()
85
- for url in urls :
86
- url = url .strip ()
87
- if self .check_lfi (url ):
88
- print (Fore .GREEN + Style .BRIGHT + "LFI vulnerability found at %s" % url )
89
- else :
90
- print (Fore .BLUE + Style .BRIGHT + "LFI is not found at %s" % url )
91
- print (Fore .GREEN + Style .BRIGHT + "Search finished." )
82
+ try :
83
+ url_list_path = input ("<You can be add in url.txt>>\n " + Fore .CYAN + Style .BRIGHT + "Enter the URL list file path: " )
84
+ with open (url_list_path , 'r' ) as f :
85
+ urls = f .readlines ()
86
+ for url in urls :
87
+ url = url .strip ()
88
+ if self .check_lfi (url ):
89
+ print (Fore .GREEN + Style .BRIGHT + "LFI vulnerability found at %s" % url )
90
+ else :
91
+ print (Fore .BLUE + Style .BRIGHT + "LFI is not found at %s" % url )
92
+ print (Fore .GREEN + Style .BRIGHT + "Search finished." )
93
+ except :
94
+ print (Fore .RED + Style .BRIGHT + "You need to select url LIST file!?" )
95
+ continue
92
96
elif a == "0" :
93
97
print (Fore .CYAN + Style .BRIGHT + "Quitting..." )
94
98
break
You can’t perform that action at this time.
0 commit comments