File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -55,13 +55,16 @@ def scrapeRC():
5555 settings = open (".searchsploit_rc" , "r" ).read ().split ("\n " )
5656 except :
5757 try :
58- settings = open (os .path .expanduser ("~" ).replace (
59- "\\ " , "/" ) + "/.searchsploit_rc" , "r" ).read ().split ("\n " )
60- # Checks for home directory in linux/mac
58+ settings = open ("/etc/.searchsploit_rc" , "r" ).read ().split ("\n " )
6159 except :
62- settings = open (os .getenv ("userprofile" ).replace (
63- "\\ " , "/" ) + "/.searchsploit_rc" , "r" ).read ().split ("\n " )
64- # Checks for home directory in windows
60+ try :
61+ settings = open (os .path .expanduser ("~" ).replace (
62+ "\\ " , "/" ) + "/.searchsploit_rc" , "r" ).read ().split ("\n " )
63+ # Checks for home directory in linux/mac
64+ except :
65+ settings = open (os .getenv ("userprofile" ).replace (
66+ "\\ " , "/" ) + "/.searchsploit_rc" , "r" ).read ().split ("\n " )
67+ # Checks for home directory in windows
6568 for i in settings :
6669 if (i == "" or i [0 ] == "#" ):
6770 continue # Ignores lines that are empty or are just comments
You can’t perform that action at this time.
0 commit comments