-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.sh
executable file
·92 lines (86 loc) · 2.62 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
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
#!/bin/bash
echo -n "Netsploit depends on external tools."
echo -n "Is it okay to install them?(y/n) "
read ans
if [ $ans == "n" ]; then
echo "Netsploit will not work without these tools. Exiting..."
exit
fi
os=`uname`
echo -e "Detected $os"
echo -e "Installing shodan"
pip install shodan
echo -e "Done!"
mkdir tools
cd tools
echo ""
echo -e "Installing additional tools"
pip install sslyze
git clone https://github.com/gkbrk/slowloris
cd slowloris
python setup.py install > /dev/null 2>&1
cd ..
# I suppose this is a form of file IO
echo "#!/bin/bash" >> c4.sh
echo "os=\`uname\`" >> c4.sh
echo "if [ \$os == \"Darwin\" ]; then" >> c4.sh
echo " open \$(curl -Ls git.io/c4 | gshuf | head -n1) > /dev/null" >> c4.sh
echo "else" >> c4.sh
echo " open \$(curl -Ls git.io/c4 | shuf | head -n1) > /dev/null" >> c4.sh
echo "fi" >> c4.sh
chmod +x c4.sh
# include some of my own tools as well
git clone https://github.com/cbrnrd/mail0wner.git # for mailsniff
cd mail0wner
bash install.sh > /dev/null 2>&1
cd ..
git clone https://github.com/thecarterb/hb-test-copy heartbleed # for heartbleed
git clone https://github.com/CoreSecurity/impacket # for smbserver
#blacknurse router attack
git clone https://github.com/jedisct1/blacknurse
cd blacknurse
make
cd ..
git clone https://github.com/aboul3la/Sublist3r # for subbrute
cd Sublist3r
pip install -r requirements.txt > /dev/null 2>&1
cd ..
wget http://pastebin.com/raw/kGQ6qquB
mv kGQ6qquB cf-resolve.py
if [ $os == "Darwin" ]; then
# Requirements for zmap
brew install pkg-config cmake gmp gengetopt json-c byacc libdnet libunistring
echo -e "Installing zmap"
cd tools
git clone https://github.com/zmap/zmap
cd zmap
cmake .
make -j4
echo "Need root password for zmap install"
sudo make install
cd ..
echo -e "Installing coreutils"
brew install coreutils
echo -n "Would you like to install tcpdump? (recommended) (y/n) "
read ans
if [ $ans == "y" ]; then
echo "Installing tcpdump"
brew install tcpdump
fi
else
echo "Installing zmap dependencies"
apt-get install build-essential cmake libgmp3-dev gengetopt libpcap-dev flex byacc libjson-c-dev pkg-config libunistring-dev
echo -e "Installing zmap"
apt-get install -y zmap
echo -n "Would you like to install tcpdump? (recommended) (y/n) "
read ans
if [ $ans == "y" ]; then
echo "Installing tcpdump"
apt-get install tcpdump -y
fi
fi
cd ..
echo -n "What is your shodan API key? "
read key
echo $key > .api_key
chmod +x netsploit