-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathmetasploitTechzindia.sh
More file actions
65 lines (56 loc) · 2.45 KB
/
metasploitTechzindia.sh
File metadata and controls
65 lines (56 loc) · 2.45 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
#!/data/data/com.termux/files/usr/bin/bash
echo "##############################################"
echo " TechZindia, PLZ SUBSCRIBE TechZindia YouTube CHANNEL"
echo "##############################################"
echo "WAIT UNTIL INSTALLING............"
echo "####################################"
apt install autoconf bison clang coreutils curl findutils git apr figlet apr-util libffi-dev libgmp-dev libpcap-dev postgresql-dev readline-dev libsqlite-dev openssl-dev libtool libxml2-dev libxslt-dev ncurses-dev pkg-config postgresql-contrib wget make ruby-dev libgrpc-dev ncurses-utils termux-tools -y
echo "####################################"
echo "Downloading & Extracting....."
cd $HOME
curl -LO https://github.com/rapid7/metasploit-framework/archive/4.16.4.tar.gz
tar -xf $HOME/4.16.4.tar.gz
mv $HOME/metasploit-framework-4.16.4 $HOME/metasploit-framework
cd $HOME/metasploit-framework
sed '/rbnacl/d' -i Gemfile.lock
sed '/rbnacl/d' -i metasploit-framework.gemspec
#Install bundler
gem install bundler
#Install nokogiri
echo "nokogiri is installing......"
gem install nokogiri -- --use-system-libraries
#Install grpc gem
sed 's|grpc (.*|grpc (1.4.1)|g' -i $HOME/metasploit-framework/Gemfile.lock
gem unpack grpc -v 1.4.1
cd grpc-1.4.1
curl -LO https://raw.githubusercontent.com/grpc/grpc/v1.4.1/grpc.gemspec
curl -L https://wiki.termux.com/images/b/bf/Grpc_extconf.patch -o extconf.patch
patch -p1 < extconf.patch
gem build grpc.gemspec
gem install grpc-1.4.1.gem
cd ..
rm -r grpc-1.4.1
#Bundle Install
echo "bundle and all other dependencies are installing......"
cd $HOME/metasploit-framework
bundle install -j5
#Fixing Shebang
$PREFIX/bin/find -type f -executable -exec termux-fix-shebang \{\} \;
rm ./modules/auxiliary/gather/http_pdf_authors.rb
ln -s $HOME/metasploit-framework/msfconsole /data/data/com.termux/files/usr/bin/
echo "###############################"
echo "Thanks To Vishalbiswani & Auxilus "
echo "###############################"
figlet TechZindia
echo "###############################################"
echo "Hello Guys, Subscribe My TechZindia YouTube channel"
figlet Subscribe
echo "###############################################"
echo "###############################"
echo "For More Hacking video At TechZindia YT Channel"
echo "###############################"
figlet TechZindia
echo "####################################"
echo " NOW YOU CAN RUN METASPLOIT BY JUST EXECUTE THE COMMAND :=> ./msfconsole"
echo "####################################"
figlet Finish