File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ def scrapeRC():
3838 "/etc/.searchsploit_rc" ,
3939 os .path .expanduser ("~/.searchsploit_rc" ),
4040 os .path .expanduser ("~/.local/.searchsploit_rc" ),
41- os .path .abspath (os .path .join (os .sys .path [0 ], "/ .searchsploit_rc" ))
41+ os .path .abspath (os .path .join (os .sys .path [0 ], ".searchsploit_rc" ))
4242 ]
4343
4444 for p in paths :
@@ -47,6 +47,12 @@ def scrapeRC():
4747 settings = settingsFile .read ().split ("\n " )
4848 settingsFile .close ()
4949 break
50+ else :
51+ print ("ERROR: Cannot find .searchsploit_rc\n Please make sure it is located in one of its well known locations." )
52+ print ("It can be anywhere in one of these locations:" )
53+ for p in paths :
54+ print ("\" {0}\" " .format (p ))
55+ exit (2 )
5056
5157 for i in settings :
5258 if (i == "" or i [0 ] == "#" ):
You can’t perform that action at this time.
0 commit comments