How to create metasploit persistent payload

Hello guy’s in this article we are going to discuss about how to create metasploit persistent payload. We already discuss about how to hack android phone with metasploit payload the problem is that payload not work longer time EX. if the victim restart they phone’s the connection will be disconnected also the victim off their Internet connection the payload connection will be disconnected so in this article we make persistent payload this payload help you to make longer access to victim mobiles.

How to create persistent payload

First you crate metasploit payload and install victim mobile if you don’t know follow this article How to hack android phone with metasploit termux

Step 1:

Once you install metasploit payload in victim mobile phone download this below bash script.

Now if you use linux means no problem but if you use termux means you just move this bash scrips in internal storages.

Step 2:

Now type this below command in your meterpreter session 

cd /sdcard

Step 3:

Now use this below command to upload you bash script in victim devices

upload /data/data/com.termux/files/home/storage/(your location)/

Step 4:

Now type this below command this command will help you to open victim shell on your meterpreter session.


Step 5:

Now type this below command this command will help you to run shell script on victim mobile phone continuously.


After 1-2 min(or when the line starts to repeat then) press CTRL+C and then type “y” to terminate the channel.

Step 6:

Now just type this below command this command will help you to hide payload in victim mobile phone.


Now using this persistent payload you can access the victim’s phone it doesn’t matter how many times he restarts the phone in a day. whenever Victim will be connected to the internet you will get meterpreter session. you can use this method just after installing the payload on the victim’s phone so there will be no chance of deletion of the payload

Leave a Reply

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