Commit 63efe18e authored by Devon Kearns's avatar Devon Kearns

Patched wf.py

parent 9540cf57
Fixed the config and wordlist paths to look in
/usr/share/webslayer/.
--- a/wf.py
+++ b/wf.py
@@ -336,7 +336,7 @@ class Ui_MainWindow(MainGui):
test=os.getcwd()+"\\wordlist\\"
print test
else:
- test=os.getcwd()+"/wordlist/"
+ test=os.getcwd()+"/usr/share/webslayer/wordlist/"
files=os.listdir(test)
dirs=[]
self.dictionaryDict={}
@@ -372,7 +372,7 @@ class Ui_MainWindow(MainGui):
############################################################
#Messages and other combos population
def loadErrors(self):
- file="config/common-errors.txt"
+ file="/usr/share/webslayer/config/common-errors.txt"
errors="("
if len(file)>0:
f=open(file,"r")
@@ -385,7 +385,7 @@ class Ui_MainWindow(MainGui):
return errors
def loadMessages(self):
- file="config/messages.txt"
+ file="/usr/share/webslayer/config/messages.txt"
messages={}
if len(file)>0:
f=open(file,"r")
@@ -498,7 +498,7 @@ class Ui_MainWindow(MainGui):
if os.name =="nt":
dir=os.getcwd()+"\\wordlist\\"
else:
- dir=os.getcwd()+"/wordlist/"
+ dir=os.getcwd()+"/usr/share/webslayer/wordlist/"
if self.filedicc=="":
self.filedicc=dir+self.dictioList.currentText()
fix-wf-paths
add-sys-path-append
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment