Skip to content

Commit 17e0e64

Browse files
committed
v1.0.5 - Fix install.sh & requirements.txt bugs
1 parent c2ca3c7 commit 17e0e64

File tree

7 files changed

+18
-15
lines changed

7 files changed

+18
-15
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/__pycache__/

conf/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,19 @@
2222
from modules.exit import exit
2323

2424
ans = True
25-
version = '1.0.4'
25+
version = '1.0.5'
26+
home = os.path.expanduser("~")
2627

2728
def reOpen():
2829
installed = True if os.path.exists("/bin/webmap") else False
2930

3031
if installed:
3132
os.system("sudo webmap")
33+
sys.exit()
3234

3335
else:
3436
os.system("sudo python3 webmap.py")
37+
sys.exit(())
3538

3639
def clear():
3740
os.system('cls' if os.name == 'nt' else 'clear')

conf/requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
requests==2.25.1
2-
art==5.1
3-
termcolor==1.1.0
1+
requests<=2.25.1
2+
art<=5.1
3+
termcolor<=1.1.0

conf/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.4
1+
1.0.5

install.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,20 @@ DEPENDENCIES="nmap nikto git python3-pip"
1010

1111
# Verify the OS witch is using and install on the right one
1212
if [ "$(grep -Ei 'debian|buntu|mint' /etc/*release)" ]; then ##If need more distributions just add more
13-
sudo apt-get install "$DEPENDENCIES" -y
13+
sudo apt-get install $DEPENDENCIES -y
1414
elif [ "$(grep -Ei 'redhat|centos' /etc/*release)" ]; then ##To install on RPM CentOS/RedHat
1515
os_version=$(cut -d ':' -f5 < /etc/system-release-cpe)
1616
if [ "$os_version" == 8 ]; then
1717
sudo dnf install https://extras.getpagespeed.com/release-el8-latest.rpm -y
18-
sudo dnf install "$DEPENDENCIES" -y
18+
sudo dnf install $DEPENDENCIES -y
1919
elif [ "$os_version" == 7 ]; then
2020
sudo rpm -Uvh http://www6.atomicorp.com/channels/atomic/centos/7/x86_64/RPMS/atomic-release-1.0-20.el7.art.noarch.rpm
2121
sudo rpm -Uvh http://www6.atomicorp.com/channels/atomic/centos/7/x86_64/RPMS/atomic-release-1.0-21.art.noarch.rpm
2222
sudo rpm -Uvh http://www6.atomicorp.com/channels/atomic/centos/7/x86_64/RPMS/atomic-release-1.0-21.art.noarch.rpm
23-
sudo yum install "$DEPENDENCIES" -y
24-
fi
23+
sudo yum install $DEPENDENCIES -y
24+
fi
2525
fi
2626

2727
pip3 install --user -r conf/requirements.txt
2828
sudo ln -s "$(pwd)"/webmap.py /usr/local/bin/webmap
29-
mkdir -pv ~/.opt
30-
git clone --depth 1 https://github.com/maurosoria/dirsearch.git ~/.opt
29+
git clone --depth 1 https://github.com/maurosoria/dirsearch.git ~/.local/share/dirsearch

modules/dirsearchscan.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#
88

99
import conf.conf as conf
10-
from os.path import expanduser
1110

1211
def dirsearchScan() :
1312
print("===================================================================")
@@ -21,7 +20,6 @@ def dirsearchScan() :
2120
dirOutput = conf.dirOutput(dirOutput, "reports/Dirsearch", dirTarget)
2221
conf.createDir(dirOutput)
2322

24-
home = expanduser("~")
25-
conf.os.system(f"python3 {home}/.opt/dirsearch/dirsearch.py -u {dirTarget} --simple-report={dirOutput}/dirsearch.txt")
23+
conf.os.system(f"python3 {conf.home}/.local/share/dirsearch/dirsearch.py -u {dirTarget} --simple-report={dirOutput}/dirsearch.txt")
2624

2725
print("______________________________________________________________________")

modules/fullscan.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ def fullScan() :
4848
conf.clear()
4949

5050
conf.os.system(
51-
'gnome-terminal -- bash -c "python3 ~/.opt/dirsearch/dirsearch.py -u '
51+
'gnome-terminal -- bash -c "python3 '
52+
+ conf.home
53+
+'/.local/share/dirsearch/dirsearch.py -u '
5254
+ targetAll
5355
+ " --simple-report="
5456
+ outputAll

0 commit comments

Comments
 (0)