-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·166 lines (138 loc) · 5.27 KB
/
install.sh
File metadata and controls
executable file
·166 lines (138 loc) · 5.27 KB
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
166
#!/bin/bash
echo " "
echo "[x] installing rapid v0.2-dev"
echo " villain@evilthings.org"
echo " "
# are we root?
if [[ $EUID -ne 0 ]]; then
echo "ERROR: script requires root privs" 1>&2
exit 1
fi
if [ -d /opt ]; then
echo "[x] /opt directory exists"
else
mkdir /opt > /dev/null 2>&1
echo "[x] /opt directory created"
fi
if [ -d /pentest ]; then
echo "[x] /pentest directory exists"
else
mkdir /pentest > /dev/null 2>&1
echo "[x] /pentest directory created"
fi
echo -n "[x] running apt-get update/upgrade.. "
/usr/bin/apt-get -y update > /dev/null 2>&1
/usr/bin/apt-get -y upgrade > /dev/null 2>&1
echo "done"
echo -n "[x] installing baseline packages.. "
/usr/bin/apt-get -y install curl git-core nmap john p0f dsniff netcat nikto python-scapy tcpdump hping3 ettercap-text-only nbtscan ptunnel ngrep proxychains tcpflow httptunnel smbclient udptunnel ipcalc tcpreplay subversion ruby irb ri rubygems libruby ruby-dev libpcap-dev python-pexpect tcptraceroute lsof libssl-dev libidn11-dev libidn11 sslsniff hydra sslstrip openvpn tinyproxy macchanger python-beautifulsoup stunnel4 libxslt-dev libxml2-dev libcurl4-gnutls-dev libopenssl-ruby libwww-perl libwww-mechanize-perl > /dev/null 2>&1
echo "done"
echo -n "[x] installing baseline gems.. "
/usr/bin/gem install typhoeus nokogiri json
echo "done"
echo -n "[x] removing unnecessary services.. "
/etc/init.d/ntp stop > /dev/null 2>&1
update-rc.d -f ntp remove > /dev/null 2>&1
update-rc.d -f portmap remove > /dev/null 2>&1
/etc/init.d/tinyproxy stop > /dev/null 2>&1
update-rc.d -f tinyproxy remove > /dev/null 2>&1
apt-get -y autoremove > /dev/null 2>&1
apt-get -y clean > /dev/null 2>&1
apt-get -y autoclean > /dev/null 2>&1
echo "done"
echo -n "[x] installing sshtun to /usr/local/bin.. "
cp src/bin/sshtun.sh /usr/local/bin > /dev/null 2>&1
chmod 755 /usr/local/bin/sshtun.sh > /dev/null 2>&1
echo "done"
echo -n "[x] installing update script to /usr/local/bin.. "
cp src/bin/rapid-update.sh /usr/local/bin > /dev/null 2>&1
chmod 755 /usr/local/bin/rapid-update.sh > /dev/null 2>&1
echo "done"
echo -n "[x] installing exploitdb search script to /usr/local/bin.. "
cp src/bin/searchsploit.sh /usr/local/bin > /dev/null 2>&1
chmod 755 /usr/local/bin/searchsploit.sh > /dev/null 2>&1
echo "done"
echo -n "[x] installing random tools to /pentest.. "
cd src/pentest/amap > /dev/null 2>&1
./configure > /dev/null 2>&1
make > /dev/null 2>&1
make install > /dev/null 2>&1
cd ../ > /dev/null 2>&1
cd dnsmap > /dev/null 2>&1
make > /dev/null 2>&1
make install > /dev/null 2>&1
cd ../ > /dev/null 2>&1
cp -R * /pentest > /dev/null 2>&1
rm -rf /pentest/amap > /dev/null 2>&1
rm -rf /pentest/dnsmap > /dev/null 2>&1
echo "done"
echo -n "[x] downloading exploitdb archive to /pentest.. "
mkdir /pentest/exploitdb
cd /pentest/exploitdb
wget http://www.exploit-db.com/archive.tar.bz2 > /dev/null 2>&1
tar jxf archive.tar.bz2 > /dev/null 2>&1
rm -rf archive.tar.bz2 > /dev/null 2>&1
echo "done"
echo -n "[x] installing metasploit framework (can take a while).. "
mkdir /opt/metasploit > /dev/null 2>&1
cd /opt/metasploit
git clone https://github.com/rapid7/metasploit-framework.git msf3 > /dev/null 2>&1
ln -sf /opt/metasploit/msf3/msf* /usr/local/bin/ > /dev/null 2>&1
echo "done"
echo -n "[x] installing sqlmap.. "
cd /pentest
git clone https://github.com/sqlmapproject/sqlmap.git > /dev/null 2>&1
echo "done"
echo -n "[x] installing w3af.. "
cd /pentest
svn co https://w3af.svn.sourceforge.net/svnroot/w3af/trunk w3af > /dev/null 2>&1
echo "done"
echo -n "[x] installing sqlninja.. "
cd /pentest
svn co https://sqlninja.svn.sourceforge.net/svnroot/sqlninja sqlninja > /dev/null 2>&1
echo "done"
echo -n "[x] installing SET.. "
cd /pentest
svn co http://svn.secmaniac.com/social_engineering_toolkit set > /dev/null 2>&1
echo "done"
echo -n "[x] installing waf-research.. "
cd /pentest
git clone https://github.com/ironbee/waf-research.git > /dev/null 2>&1
echo "done"
echo -n "[x] installing wpscan.. "
cd /pentest
git clone https://github.com/wpscanteam/wpscan.git > /dev/null 2>&1
echo "done"
echo -n "[x] installing weevely.. "
cd /pentest
git clone https://github.com/epinna/Weevely.git weevely > /dev/null 2>&1
echo "done"
echo -n "[x] building skipfish (can take a while).. "
cd /pentest/skipfish
make > /dev/null 2>&1
echo "done"
echo -n "[x] setting permissions on /pentest.. "
chown -R root.root /pentest
chmod 755 /pentest/fasttrack/fast-track.py > /dev/null 2>&1
chmod 755 /pentest/fastttrack/setup.py > /dev/null 2>&1
chmod 755 /pentest/joomscan/joomscan.pl > /dev/null 2>&1
chmod 755 /pentest/sickfuzz/sickfuzz.py > /dev/null 2>&1
chmod 755 /pentest/smtp-user-enum/smtp-user-enum.pl > /dev/null 2>&1
chmod 755 /pentest/snmpenum/snmpenum.pl > /dev/null 2>&1
chmod 755 /pentest/sqlbrute/sqlbrute.py > /dev/null 2>&1
chmod 755 /pentest/theharvester/*.py > /dev/null 2>&1
chmod 755 /pentest/waffit/wafw00f.py > /dev/null 2>&1
chmod 755 /pentest/wfuzz/*.py > /dev/null 2>&1
echo "done"
echo -n "[x] changing default RAM allocation.. "
cp /boot/arm224_start.elf /boot/start.elf
echo "done"
echo -n "[x] updating profile.. "
echo "PATH=$PATH:/pentest" >> /root/.bashrc
echo "done"
echo " "
echo "[x] rapid installation complete"
echo "[x] restart required to activtate new RAM allocation"
echo "[x] don't forget to configure /usr/local/bin/sshtun.sh"
echo " and add it to rc.local"
echo " "