-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.sh
executable file
·59 lines (49 loc) · 2.57 KB
/
setup.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
#!/bin/bash
apt-get update
apt-get install whois telnet dnsrecon masscan net-tools theharvester libssl-dev libxml2-dev libxslt-dev g++ python-pip
pip install --upgrade pip
pip install wheel pyip pyOpenSSL==17.5.0
git clone https://github.com/SpiderLabs/ikeforce.git /home/admin/downloads/ikeforce
git clone https://bitbucket.org/LaNMaSteR53/recon-ng.git /home/admin/downloads/recon-ng
git clone https://bitbucket.org/al14s/rawr.git /home/admin/downloads/rawr
wget https://raw.githubusercontent.com/ap3r/get_vpn_groups/master/groupnames_shodan.txt -O Tools-n-Stuff/groupnames_shodan.txt
wget wget https://vpn.hidemyass.com/hma-vpn-linux-cli.zip -O Tools-n-Stuff/hma-vpn-linux-cli.zip
git clone https://github.com/andresriancho/w3af.git /home/admin/downloads/w3af
sed -Ei "s/('pyOpenSSL', ')(0\.15\.1)(')/\117.5.0\3/g" downloads/w3af/w3af/core/controllers/dependency_check/requirements.py
/home/admin/downloads/w3af/w3af_console
/tmp/w3af_dependency_install.sh
chown -R admin:admin /home/admin/downloads
/home/admin/downloads/rawr/install.sh
cp /home/admin/Tools-n-Stuff/1_recon/googlepie/grecce.py /home/admin/downloads/recon-ng/modules/recon/domains-vulnerabilities/
cp /home/admin/Tools-n-Stuff/1_recon/googlepie/sites.txt /home/admin/downloads/recon-ng/data/grecce_sites.txt
cp /home/admin/Tools-n-Stuff/1_recon/googlepie/extentions.txt /home/admin/downloads/recon-ng/data/grecce_extentions.txt
cp /home/admin/Tools-n-Stuff/1_recon/googlepie/bishopfox-google-queries.txt /home/admin/downloads/recon-ng/data/grecce_bishopfox.txt
echo 'set DEBUG False
set VERBOSE True
set USER-AGENT Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:42.0) Gecko/20100101 Firefox/42.0
use recon/domains-vulnerabilities/grecce
set SITES data/grecce_sites.txt
set EXTENTIONS data/grecce_extentions.txt
set BISHOPFOX data/grecce_bishopfox.txt' > /tmp/grecce.rc
echo '# Added ":\D{%F-%T}~" to the end of the prompt
# Eg. root@kali:~:2015-06-21-07:55:37~#
if [ "$color_prompt" = yes ]; then
PS1="${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]:\D{%F-%T}~\$"
else
PS1="${debian_chroot:+($debian_chroot)}\u@\h:\w:\D{%F-%T}~\$"
fi' >> ~/.bashrc
echo '# Logs all terminal output
# Eg. ~/.terminal-logs/2015-06-02_08:15:25.14622.log
if [ -z "$UNDER_SCRIPT" ]; then
logdir=$HOME/.terminal-logs
if [ ! -d $logdir ]; then
mkdir $logdir
fi
#gzip -q $logdir/*.log
logfile=$logdir/$(date +%F_%T).$$.log
export UNDER_SCRIPT=$logfile
script -f -q $logfile
exit
fi' >> ~/.bash_profile
service postgresql start
msfdb init