In preparation to unlock a locked Windows 7 laptop or PC without knowing the password, I had to install Metasploit onto the Bash Bunny as root. So this is the way I did. Maybe it is useful to someone out there as well.
Before you start please check your current date on the Bash Bunny because it might cause troubles with SSL certificates that have been placed after the firmware of the Bash Bunny came out. You can set it manually to the current date like this:
date -s 20170627
Let's jump right into it by installing the prerequisites and downloading the Metasploit framework from git:
apt -y install screen autoconf bison build-essential curl git-core libapr1 libaprutil1 libcurl4-openssl-dev libgmp3-dev libpcap-dev libpq-dev libreadline6-dev libsqlite3-dev libssl-dev libsvn1 libtool libxml2 libxml2-dev libxslt-dev libyaml-dev locate ncurses-dev openssl wget xsel zlib1g zlib1g-dev ruby-dev
git clone https://github.com/rapid7/metasploit-framework.git
Now we will install a more recent ruby version (as always please check the source code of https://get.rvm.io so you know what you are installing):
curl -sSL https://rvm.io/mpapis.asc | gpg --import -
curl -L https://get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
echo "source /etc/profile.d/rvm.sh" >> /root/.profile
cd metasploit-framework
rvm install ruby-2.4.1
The next step seems a little odd (to go up a directory and then go back into the metasploit-framework) but it is necessary for some environment variables to get set properly. We then can install Metasploit:
cd ..
cd metasploit-framework
gem install bundler
bundle install
You can now start Metasploit:
./msfconsole
Congratulations @cronetos! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Vote for @Steemitboard as a witness to get one more award and increased upvotes!