Created
October 23, 2018 23:30
-
-
Save zzz-i2p/97aaf02d6315039e4d089331f9304ede to your computer and use it in GitHub Desktop.
This file contains 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 | |
apt install autoconf bison clang coreutils 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 postgresql-contrib wget make ruby-dev libgrpc-dev ncurses-utils termux-tools -y | |
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 | |
gem install bundler | |
bundle config build.nokogiri --use-system-libraries | |
gem install nokogiri -- --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://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 | |
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 | |
ln -s $HOME/metasploit-framework/msfconsole /data/data/com.termux/files/usr/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment