File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed
Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change 22from sys import argv , exit
33import os
44
5- # settings
6- SETTINGS_LOC = ""
7- # This should be the only variable that you need to edit manually.
8- # place the file path of .searchsploit_rc so that the script can get the
9- # rest of the settings from anywhere
10-
11-
125# Default options
136COLOUR = True
147EDBID = False
@@ -49,15 +42,13 @@ def scrapeRC():
4942 divider = []
5043
5144 try :
52- if (SETTINGS_LOC != "" ): # Checks if the variable is empty
53- settingsFile = open (os .path .relpath (SETTINGS_LOC ), "r" )
54- else :
55- settingsFile = open (".searchsploit_rc" , "r" )
45+ settingsFile = open ("/etc/.searchsploit_rc" , "r" )
5646 except :
5747 try :
58- settingsFile = open (os .path .abspath ("/etc/.searchsploit_rc" ), "r" )
59- except :
6048 settingsFile = open (os .path .expanduser ("~/.searchsploit_rc" ), "r" )
49+ except :
50+ settingsFile = open (os .path .abspath (
51+ os .sys .path [0 ] + "/.searchsploit_rc" ), "r" )
6152 # Checks for config in home directory
6253
6354 settings = settingsFile .read ().split ("\n " )
You can’t perform that action at this time.
0 commit comments