-
Notifications
You must be signed in to change notification settings - Fork 133
/
Kali_Installer.sh
192 lines (181 loc) · 8.63 KB
/
Kali_Installer.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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
# *************************************************************************************** #
# ---------------------------------- EULA NOTICE ---------------------------------------- #
# Agreement between "Haroon Awan" and "You"(user). #
# ---------------------------------- EULA NOTICE ---------------------------------------- #
# 1. By using this piece of software your bound to these point. #
# 2. This an End User License Agreement (EULA) is a legal between a software application #
# author "Haroon Awan" and (YOU) user of this software. #
# 3. This software application grants users rights to use for any purpose or modify and #
# redistribute creative works. #
# 4. This software comes in "is-as" warranty, author "Haroon Awan" take no responsbility #
# what you do with by/this software as your free to use this software. #
# 5. Any other purpose(s) that it suites as long as it is not related to any kind of #
# crime or using it in un-authorized environment. #
# 6. You can use this software to protect and secure your data information in any #
# environment. #
# 7. It can also be used in state of being protection against the unauthorized use of #
# information. #
# 8. It can be used to take measures achieve protection. #
# *************************************************************************************** #
#!/bin/bash
red="\e[0;31m"
green="\e[0;32m"
off="\e[0m"
function banner() {
clear
echo " ";
echo " ";
echo " ";
echo " .########...########..######.....#######...##....##.....######.....#######....######....########......########.. ";
echo " .##.....##..##.......##....##..##.....##..###...##....##....##...##.....##...##...##...##.....##....##.....##. ";
echo " .##.....##..##.......##........##.....##..####..##....##.........##.....##...##..##....##......##...##.....##. ";
echo " .########...######...##........##.....##..##.##.##....##.........##.....##...##..##....#########....#########. ";
echo " .##...##....##.......##........##.....##..##..####....##.........##.....##...##...##...##....##.....##.....##. ";
echo " .##....##...##.......##....##..##.....##..##...###....##....##...##.....##...##...###..##.....##....##.....##. ";
echo " .##.....##..########..######....#######...##....##.....######.....#######....#######...##......##...##.....##. ";
echo " Ultimate Recon and Foot Printing Software Version 1.0a ";
echo " [Coded By: Haroon Awan] ";
echo " [Contact: [email protected]] ";
echo " ";
echo " ";
echo " ";
}
function linux() {
echo -e "$red [$green+$red]$off Installing Perl ...";
sudo apt-get install -y perl
echo -e "$red [$green+$red]$off Installing JSON Module ...";
cpan install JSON
echo -e "$red [$green+$red]$off Installing Extra Perl Modules ...";
echo "y" | cpan install WWW::Mechanize
echo "y" | cpan install use HTML::TokeParser
echo "y" | cpan install Term::ANSIColor
echo "y" | cpan install Mojo::DOM
echo "y" | cpan install Data::Dumper
echo "y" | cpan install Win32::Console::ANSI
echo "y" | cpan install HTML::TableExtract
echo "y" | cpan install Data::Validate::Domain
echo "y" | cpan install LWP::Protocol::https
echo "y" | cpan install Mozilla::CA
echo "y" | cpan install Bundle::LWP
echo -e "$red [$green+$red]$off Checking directories..."
if [ -d "/usr/share/ReconCobra" ]; then
echo -e "$red [$green+$red]$off A Directory ReconCobra Was Found! Do You Want To Replace It? [Y/n]:" ;
read replace
if [ "$replace" = "Y" ]; then
sudo rm -r "/usr/share/ReconCobra"
sudo rm "/usr/share/icons/ReconCobra.png"
sudo rm "/usr/share/applications/ReconCobra.desktop"
sudo rm "/usr/local/bin/ReconCobra"
else
echo -e "$red [$green+$red]$off If You Want To Install You Must Remove Previous Installations";
exit
fi
fi
echo -e "$red [$green+$red]$off Installing ...";
echo -e "$red [$green+$red]$off Creating Symbolic Link ...";
echo -e "#!/bin/bash
perl /usr/share/ReconCobra/ReconCobra.pl" '${1+"$@"}' > "ReconCobra";
chmod +x "ReconCobra";
sudo mkdir "/usr/share/ReconCobra"
sudo cp "installer.sh" "/usr/share/ReconCobra"
sudo cp "ReconCobra.pl" "/usr/share/ReconCobra"
sudo cp "config/ReconCobra.jpeg" "/usr/share/icons"
sudo cp "config/ReconCobra.desktop" "/usr/share/applications"
sudo cp "ReconCobra" "/usr/local/bin/"
rm "ReconCobra";
echo -e "$red [$green+$red]$off Installing dependencies..."
echo "y" | apt-get install xdg-utils
echo "y" | apt-get install cargo
echo "y" | apt-get install python-yaml
echo "y" | apt-get install hping3
echo "y" | apt-get install python2.7
echo "y" | apt-get install python3
echo "y" | apt-get install x11-utils xutils-dev imagemagick libxext-dev xspy
echo "y" | apt-get install golang
echo "y" | apt-get install curl
echo "y" | apt-get install nfs-common
echo "y" | apt-get install smbclient
echo "y" | apt-get install gem
gem install whois
gem install wayback_machine_downloader
echo "y" | apt-get install perl-LWP-Protocol-https
echo "y" | git clone https://github.com/xroche/httrack.git --recurse
cd httrack
./configure --prefix=$HOME/usr && make -j8 && make install
cd ..
echo "y" | git clone https://github.com/haroonawanofficial/cobra.git
echo "y" | git clone https://github.com/haroonawanofficial/maahro.git
echo "y" | git clone https://github.com/haroonawanofficial/ShaheenX.git
echo "y" | git clone https://github.com/chenjj/CORScanner.git
cd CORScanner
echo "y" | apt-get install python-pip
echo "y" | apt-get install python3-pip
pip install -r requirements.txt
cd ..
echo "y" | git clone https://github.com/stormshadow07/HackTheWorld.git
cd HackTheWorld
chmod +x install.sh && ./install.sh
cd ..
echo "y" | git clone https://github.com/threat9/routersploit
cd routersploit
sudo apt-get install python-setuptools
pip install setuptools
python setup.py install
sudo pip install -r requirements.txt
cd ..
echo "y" | git clone https://github.com/yassineaboukir/Asnlookup.git
echo "y" | git clone https://github.com/m4ll0k/Infoga.git
cd infoga
python2 setup.py install
echo "y" | git clone https://github.com/exiftool/exiftool.git
echo "y" | git clone https://github.com/GerbenJavado/LinkFinder.git
echo "y" | git clone https://github.com/sensepost/BiLE-suite.git
echo "y" | git clone https://github.com/haroonawanofficial/vasl.git
echo "y" | git clone https://github.com/haroonawanofficial/panthera.git
echo "y" | git clone https://github.com/naqushab/SearchEngineScrapy.git
echo "y" | git clone https://github.com/heycam/json-describe
cd json-describe
cargo build
cd ..
echo "y" | apt-get install nmap
echo "y" | apt-get install xrdp
pip install jsbeautifier
pip install argparse
pip install requests
pip install request
cd SearchEngineScrapy
pip install -r requirements.txt
sudo virtualenv --python="2" env
sudo env/bin/activate
cd ..
echo "y" | git clone https://github.com/FortyNorthSecurity/EyeWitness.git
cd EyeWitness/setup
chmod u+x setup.sh
./setup.sh
cd ..
cd ..
chmod u+x *.sh
cp * -r /usr/share/ReconCobra
cp *.sh /usr/share/ReconCobra
chmod -R 777 /usr/share/ReconCobra
chmod -R 777 ./
cat traceroute-function >> ~/.bashrc
source ~/.bashrc
if [ -d "/usr/share/ReconCobra" ] ;
then
echo -e "$red [$green+$red]$off ReconCobra Successfully Installed, Starting";
sleep 2;
ReconCobra
else
echo -e "$red [$green+$red]$off ReconCobra Cannot Be Installed. Trying using Portable Edition !";
exit
fi
}
if [ -d "/usr/bin/" ];then
banner
echo -e "$red [$green+$red]$off ReconCobra Will Be Installed In Your System";
linux
else
echo -e "$red [$green+$red]$off ReconCobra Cannot Be Installed. Trying using Portable Edition !";
exit
fi