In this part of the post i will guide you all the way through to Installing Metasploit-Framework in Android. Metasploit-Framework is an important and powerful tool used for Hacking by means of creating payload. I will tell you the way by which you can install it in your android phone using termux app.

Metasploit logo

Moreover in addition to this i will also tell you how to hack an Android using another Android (Android to Android Hacking)  by Metasploit-Framework in my next post.

Here’s a link to that post =>

Android to Android hacking

Requirements for installing Metasploit-Framework :-

  1. Android 5.0+(Lollipop)
  2. About 600MB of internal storage
  3. Termux application

Step 1: Installation of Termux

Termux is an free android app that simulates Linux environment hence allows you to run linux command directly from your phone.

Download Termux from Play Store (170KB)

After installing Termux just open it. It will automatically install some necessary packages within seconds(depends on internet connection)

installation of termux screenshot

Step 2: Updating and Upgrading packages

Firstly we need to update and upgrade packages of Termux and to do so you need to type this command

apt update && apt upgrade -y

then hit enter.

update and upgrade in termux screenshot

Secondly we have to change our directory to home. For this type this command :-

cd $HOME

Step 3: Installation of some necessary scripts

To go through further steps you need to install some additional packages like git,wget,curl because they will be certainly required for installing Metasploit-Framework . To install them just run these commands on termux :-

pkg install wget -y && pkg install curl -y && pkg install git -y

installation of scripts screenshot

Step 4: Installing Metasploit-Framework

Metasploit is one of the most powerful tool of Kali Linux. We will use it as a main tool for Android to Android Hacking.

To install Metasploit-Framework first of all we have to install a script :-

wget Auxilus.github.io/metasploit.sh

script for Metasploit-Framework screenshot

  • To run the newly installed script for installing Metasploit Framework, enter this command:-

bash metasploit.sh

  • This script will install the latest version of Metasploit-Framework script also include some extras to make updating Metasploit faster.
  • Finally,after the complete installation, you can run Metasploit, by entering this command (anywhere, because shortcut is created by the Script) :-

msfconsole

NOTE :-

If you are experiencing a problem probably like metasploit is not running by msfconsole command then don’t worry here i’m providing you two solutions for that :

(i) Manual Way

First of all just open new session in termux app and go to metasploit-framework directory and and enter ./msfconsole command, like this

cd metasploit-framework

./msfconsole or ./msfvenom

(II) Shortcut Method

Those people who are not satisfied with the first one, and want to create a shortcut command, as the other programs set, enter the following commands one by one in a new session (msfvenom included):

ln -s /data/data/com.termux/files/home/metasploit-framework/msfconsole
mv msfconsole $PREFIX/bin

ln -s /data/data/com.termux/files/home/metasploit-framework/msfvenom
mv msfvenom $PREFIX/bin


(III) Remedy for All problem

If you are still facing any problem then don’t worry just reinstall TERMUX app and just copy and paste this command .It will  do everything from start to end.

pkg install unstable-repo

pkg install metasploit
Type msfconsole to open metasploit.

Hence it seems like you are finally all done with Installating Metasploit-Framework in android.So as a result you will see such kind of screen(depends on version of Metasploit) .

Metasploit-Framework working screenshot

Now furthermore if you are probably looking for using Metasploit-Framework, and creating undetectable payloads for Hacking anyone’s Android phones then do visit  part 2 of this post Android to Android Hacking

Categories: AllHacking

Leave a Reply

Your email address will not be published. Required fields are marked *