Last active
March 5, 2021 01:03
-
-
Save kuldeep1337/96cf401b9b1652b799580905dce5c45e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/data/data/com.termux/files/usr/bin/bash | |
echo "##############################################" | |
echo " I AM nobita" | |
echo "##############################################" | |
echo "WAIT UNTIL INSTALLING............" | |
echo "####################################" | |
apt install -y autoconf bison clang coreutils axel curl findutils git apr 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 wget make ruby-dev libgrpc-dev termux-tools ncurses-utils ncurses unzip zip tar postgresql termux-elf-cleaner | |
echo "####################################" | |
apt update && apt upgrade | |
echo "Downloading & Extracting....." | |
# Remove Old Tars | |
find $HOME -name "*.16.tar.gz" -type f | |
# Remove Old Folders | |
find $HOME -name "metasploit*" -type d | |
cd $HOME | |
axel --alternate https://github.com/rapid7/metasploit-framework/archive/4.16.16.tar.gz | |
tar -xf $HOME/metasploit-framework-4.16.16.tar.gz | |
mv $HOME/metasploit-framework-4.16.16 $HOME/metasploit-framework | |
rm $HOME/metasploit-framework-4.16.16.tar.gz | |
cd $HOME/metasploit-framework | |
sed '/rbnacl/d' -i Gemfile.lock | |
sed '/rbnacl/d' -i metasploit-framework.gemspec | |
gem install bundler | |
sed 's|nokogiri (1.*)|nokogiri (1.8.0)|g' -i Gemfile.lock | |
# Many phones are claiming libxml2 not found error | |
ln -sf $PREFIX/include/libxml2/libxml $PREFIX/include/ | |
gem install nokogiri -v 1.8.0 -- --use-system-libraries | |
#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://raw.githubusercontent.com/Hax4us/Hax4us.github.io/master/extconf.patch | |
#patch -p1 < extconf.patch | |
#gem build grpc.gemspec | |
#gem install grpc-1.4.1.gem | |
#cd .. | |
#rm -r grpc-1.4.1 | |
cd $HOME/metasploit-framework | |
bundle install -j5 | |
$PREFIX/bin/find -type f -executable -exec termux-fix-shebang \{\} \; | |
rm ./modules/auxiliary/gather/http_pdf_authors.rb | |
if [ -e $PREFIX/bin/msfconsole ];then | |
rm $PREFIX/bin/msfconsole | |
fi | |
if [ -e $PREFIX/bin/msfvenom ];then | |
rm $PREFIX/bin/msfvenom | |
fi | |
ln -sf $HOME/metasploit-framework/msfconsole /data/data/com.termux/files/usr/bin/ | |
ln -sf $HOME/metasploit-framework/msfvenom /data/data/com.termux/files/usr/bin/ | |
termux-elf-cleaner /data/data/com.termux/files/usr/lib/ruby/gems/2.4.0/gems/pg-0.20.0/lib/pg_ext.so | |
echo "Creating database" | |
cd $HOME/metasploit-framework/config | |
curl -LO https://raw.githubusercontent.com/Hax4us/Metasploit_termux/master/database.yml | |
mkdir -p $PREFIX/var/lib/postgresql | |
initdb $PREFIX/var/lib/postgresql | |
pg_ctl -D $PREFIX/var/lib/postgresql start | |
createuser msf | |
createdb msf_database | |
echo "###############################" | |
echo "Thanx To anshu" | |
echo "###############################" | |
echo "###############################################" | |
echo "Hello I Am nobita " | |
echo "###############################################" | |
echo "###############################" | |
echo "LulzSec India" | |
echo "###############################" | |
echo "####################################" | |
echo " NOW YOU CAN LAUNCH METASPLOIT BY JUST EXECUTE THE COMMAND :=> msfconsole" | |
echo "####################################" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment