File tree Expand file tree Collapse file tree 7 files changed +18
-15
lines changed Expand file tree Collapse file tree 7 files changed +18
-15
lines changed Original file line number Diff line number Diff line change
1
+ ** /__pycache__ /
Original file line number Diff line number Diff line change 22
22
from modules .exit import exit
23
23
24
24
ans = True
25
- version = '1.0.4'
25
+ version = '1.0.5'
26
+ home = os .path .expanduser ("~" )
26
27
27
28
def reOpen ():
28
29
installed = True if os .path .exists ("/bin/webmap" ) else False
29
30
30
31
if installed :
31
32
os .system ("sudo webmap" )
33
+ sys .exit ()
32
34
33
35
else :
34
36
os .system ("sudo python3 webmap.py" )
37
+ sys .exit (())
35
38
36
39
def clear ():
37
40
os .system ('cls' if os .name == 'nt' else 'clear' )
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1
- 1.0.4
1
+ 1.0.5
Original file line number Diff line number Diff line change @@ -10,21 +10,20 @@ DEPENDENCIES="nmap nikto git python3-pip"
10
10
11
11
# Verify the OS witch is using and install on the right one
12
12
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
14
14
elif [ " $( grep -Ei ' redhat|centos' /etc/* release) " ]; then # #To install on RPM CentOS/RedHat
15
15
os_version=$( cut -d ' :' -f5 < /etc/system-release-cpe)
16
16
if [ " $os_version " == 8 ]; then
17
17
sudo dnf install https://extras.getpagespeed.com/release-el8-latest.rpm -y
18
- sudo dnf install " $DEPENDENCIES " -y
18
+ sudo dnf install $DEPENDENCIES -y
19
19
elif [ " $os_version " == 7 ]; then
20
20
sudo rpm -Uvh http://www6.atomicorp.com/channels/atomic/centos/7/x86_64/RPMS/atomic-release-1.0-20.el7.art.noarch.rpm
21
21
sudo rpm -Uvh http://www6.atomicorp.com/channels/atomic/centos/7/x86_64/RPMS/atomic-release-1.0-21.art.noarch.rpm
22
22
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
25
25
fi
26
26
27
27
pip3 install --user -r conf/requirements.txt
28
28
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
Original file line number Diff line number Diff line change 7
7
#
8
8
9
9
import conf .conf as conf
10
- from os .path import expanduser
11
10
12
11
def dirsearchScan () :
13
12
print ("===================================================================" )
@@ -21,7 +20,6 @@ def dirsearchScan() :
21
20
dirOutput = conf .dirOutput (dirOutput , "reports/Dirsearch" , dirTarget )
22
21
conf .createDir (dirOutput )
23
22
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" )
26
24
27
25
print ("______________________________________________________________________" )
Original file line number Diff line number Diff line change @@ -48,7 +48,9 @@ def fullScan() :
48
48
conf .clear ()
49
49
50
50
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 '
52
54
+ targetAll
53
55
+ " --simple-report="
54
56
+ outputAll
You can’t perform that action at this time.
0 commit comments