forked from j3ssie/osmedeus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·176 lines (126 loc) · 4.44 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
#!/bin/bash -i
#global stuff
CWD=$(pwd)
WORKSPACE="$CWD/workspaces/"
PLUGINS_PATH="$CWD/plugins/"
DEFAULT_SHELL="$HOME/.bashrc"
#some function
install_banner()
{
name=$1
echo -e "\033[1;32m[+] Installing $name \033[1;37m"
}
install_banner "git, nmap, masscan, chromium, npm"
[ -x "$(command -v git)" ] || apt-get install git -y
[ -x "$(command -v nmap)" ] || apt-get install nmap -y
[ -x "$(command -v masscan)" ] || apt-get install masscan -y
[ -x "$(command -v chromium)" ] || apt-get install chromium -y
[ -x "$(command -v npm)" ] || apt-get install npm -y
install_banner "wordlists"
mkdir -p $PLUGINS_PATH/wordlists/
[[ -f $PLUGINS_PATH/wordlists/all.txt ]] || wget -q -O $PLUGINS_PATH/wordlists/all.txt https://gist.githubusercontent.com/jhaddix/86a06c5dc309d08580a018c66354a056/raw/96f4e51d96b2203f19f6381c8c545b278eaa0837/all.txt
[[ -f $PLUGINS_PATH/wordlists/shorts.txt ]] || wget -q -O $PLUGINS_PATH/wordlists/shorts.txt https://raw.githubusercontent.com/danielmiessler/SecLists/master/Discovery/DNS/subdomains-top1mil-20000.txt
[[ -f $PLUGINS_PATH/wordlists/dir-all.txt ]] || wget -q -O $PLUGINS_PATH/wordlists/dir-all.txt https://gist.githubusercontent.com/jhaddix/b80ea67d85c13206125806f0828f4d10/raw/c81a34fe84731430741e0463eb6076129c20c4c0/content_discovery_all.txt
install_banner "vulners nse"
# Install vulners nse script
[[ -f /usr/share/nmap/scripts/vulners.nse ]] || wget -q -O /usr/share/nmap/scripts/vulners.nse https://raw.githubusercontent.com/vulnersCom/nmap-vulners/master/vulners.nse
install_banner "nmap bootstrap"
# Install nmap bootstrap
[[ -f $PLUGINS_PATH/nmap-bootstrap.xsl ]] || wget -q -O $PLUGINS_PATH/nmap-bootstrap.xsl https://raw.githubusercontent.com/honze-net/nmap-bootstrap-xsl/master/nmap-bootstrap.xsl
install_banner "providers-data for subdomain takeover"
[[ -f $PLUGINS_PATH/providers-data.csv ]] || wget -q -O $PLUGINS_PATH/providers-data.csv https://raw.githubusercontent.com/anshumanbh/tko-subs/master/providers-data.csv
##
chmod +x osmedeus.py
install_banner "Golang"
apt install golang -y
### adding gopath if GOPATH not in default shellrc
if ! grep -Fxq "GOPATH" "$DEFAULT_SHELL"
then
echo 'export GOPATH=$HOME/go' >> $DEFAULT_SHELL
echo 'PATH=$GOPATH/bin:$PATH' >> $DEFAULT_SHELL
source $DEFAULT_SHELL
fi
PS="$ "
source $DEFAULT_SHELL
##
# Install go stuff
##
install_banner "amass"
go get -u github.com/OWASP/Amass/...
install_banner "subfinder"
go get -u github.com/subfinder/subfinder
install_banner "gobuster"
go get -u github.com/OJ/gobuster
install_banner "aquatone"
go get -u github.com/michenriksen/aquatone
install_banner "gitrob"
go get -u github.com/michenriksen/gitrob
install_banner "subjack"
go get -u github.com/haccer/subjack
install_banner "tko-subs"
go get -u github.com/anshumanbh/tko-subs
install_banner "gitleaks"
go get -u github.com/zricethezav/gitleaks
#Install flask stuff
install_banner "flask"
pip3 install flask flask_restful flask_jwt flask_cors python-libnmap
install_banner "observatory"
npm install -g observatory-cli
install_banner "IPOsint"
cd $PLUGINS_PATH
git clone https://github.com/j3ssie/IPOsint
pip3 install -r IPOsint/requirements.txt
cd $CWD
install_banner "massdns"
cd $PLUGINS_PATH
git clone https://github.com/blechschmidt/massdns
cd massdns
make
##
# Install python stuff
##
install_banner "brutespray"
cd $PLUGINS_PATH
git clone https://github.com/x90skysn3k/brutespray
cd brutespray
pip install -r requirements.txt
cd $CWD
install_banner "truffleHog"
pip install truffleHog
install_banner "testssl.sh"
cd $PLUGINS_PATH
git clone https://github.com/drwetter/testssl.sh
cd $CWD
install_banner "LinkFinder"
cd $PLUGINS_PATH
git clone https://github.com/GerbenJavado/LinkFinder.git
cd LinkFinder
python setup.py install
cd $PLUGINS_PATH
install_banner "sqlmap"
git clone https://github.com/sqlmapproject/sqlmap
install_banner "SleuthQL"
git clone https://github.com/RhinoSecurityLabs/SleuthQL
pip install bs4
cd $CWD
cd $PLUGINS_PATH
install_banner "dirsearch"
git clone https://github.com/maurosoria/dirsearch
install_banner "dirhunt"
git clone https://github.com/Nekmo/dirhunt
cd dirhunt
python3 setup.py install
cd $CWD
install_banner "CORStest"
cd $PLUGINS_PATH
git clone https://github.com/RUB-NDS/CORStest
install_banner "JSParser"
cd $PLUGINS_PATH
git clone https://github.com/nahamsec/JSParser
cd JSParser/
python setup.py install
# install_banner "EyeWitness"
# cd $PLUGINS_PATH
# git clone https://github.com/FortyNorthSecurity/EyeWitness
# cd EyeWitness
# bash setup/setup.sh