How to: Install Metasploit Framework on Android | Part #1 - in TermuX

Aug 31, 2018 02:08 PM
Apr 4, 2019 07:40 PM

Hi My Fellow H4ck3Rs!

In this Thread, I`m gonna show you how to install Metasploit Framework in TermuX. You can use it for Android to Android/Windows hacking. It is the best way to hack another android like WATCH_DOGS Style :)

_Little Note:

The following method is a little out-dated. So, Please follow the first script under the NO LUCK !? section, only if the following method doesn't work!_

So, lets start...

Requirements

1). Android 5.0 + (For older Androids, visit this Thread.)

2). TermuX (Download it from Google Play or Play Store)

3). About 500mbs of internal storage (For proper installation of Metasploit)

Step 1: Installation of TermuX

Install TermuX from Google Play or Download latest APK file from HERE.

After Installing TermuX , follow these steps :

Step 2: Installing a Script for Metasploit

To install Metasploit-Framework in TermuX, enter the following commands carefully and one by one in the TermuX (After entering a single command line, don`t forget to press enter, and wait for the process to complete if any).

  • First of all, we have to install some scripts, for this, enter:

pkg update && pkg upgrade -y && pkg install wget curl openssh git -y

— These pkgs are required for further steps

(Wait till it is Completely installed)

  • Now we have to go to HOME directory, for this enter:

cd $HOME

— Only, if you are not at Home Directory
  • Now, we have to install a script for Completely Installing All-in-One Metasploit Package. For this, enter:

wget Auxilus.github.io/metasploit.sh

— Auxilus' Script

Step 3: Installing Metasploit Framework

  • 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. If all goes well, i.e. No red colored warnings, you can start Metasploit using the following simple steps:
  • Now, after the complete installation, you can run Metasploit, by entering this command (anywhere, because shortcut is created by the Script) :

msfconsole

  • (Optional) This is an all in one script for the installation of MSF in TermuX. Use it if you are busy in other work. Enter the following command, and wait for its complete installation:

pkg update && pkg upgrade -y && pkg install curl wget tsu wget git && wget Auxilus.github.io/metasploit.sh && bash metasploit.sh

— By Auxilus

No Luck !?

If the above method is causing any errors or something like it, then use the following other (one-step) commands to install Metasploit:

  • R3tr0 Gh0s7 'S Original Method:

apt update && apt upgrade && apt install unstable-repo && apt install metasploit

— This installs MSF Latest Version
  • All.in.One Script of Hax4Us :

pkg update && pkg upgrade && pkg install git curl wget nmap -y && curl -LO raw.githubusercontent.com/Hax4us/Metasploit_termux/master/metasploit.sh && chmod 777 metasploit.sh && ./metasploit.sh

— Thanks To : OMM
  • V3rluchie's Method :

pkg update && pkg upgrade && pkg install curl wget git && git clone github.com/verluchie/termux-metasploit && chmod 777 termux-metasploit/install.sh && sh termux-metasploit/install.sh

— By V3rluchie
  • Tech-X3 's Trick

apt update && apt upgrade && apt install curl && curl -LO raw.githubusercontent.com/1Tech-X/Metasploit-4.16.12/master/metasploit.sh && chmod 777 metasploit.sh && sh metasploit.sh

— This script will not create any shortcut commands

???... A Common Problem ...???

  • Some people are experiencing this problem, that they are not able to open metasploit framework console via msfconsole command. So, I`ve made two solutions for that.
  • 1). Manual Way

Just open a New Session and go to metasploit-framework directory, and enter ./msfconsole command, Like This (same for msfvenom):

cd metasploit-framework

./msfconsole

OR

./msfvenom

— 1st command will take U 2 the MSF Directory, and 2nd 1 is 2 start MSF.
  • 2). 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

— This process is also called Symlinking [Updated]

Note:-

This Thread is created for education purposes only. I`ll not be responsible of any Illegal use of this information.

If you have any problems or getting any type of error or you think that I`ve missed something , then please inform me in Comments Section. I`ll fix that soon...

Moreover, this Guide is originally taken from TermuX Official Website , for more information (specially for manual installation of Metasploit on TermuX) visit their Official website.

Anyway, Thanks for reading my thread (You can also join our WhatsApp Group (Link Updated) for more information and Guides.

Thread about: "Hacking Android By Using Metasploit in TermuX" can be found HERE & HERE

636729482672481182.jpg
  • H4ck3R _777

Comments

No Comments Exist

Be the first, drop a comment!