-1

I injected my payload into an Legit App and want to make a persistent script for that App.. How can i do the same so that it runs regularly at regular intervals. This is the Original code of payload to run at 20 seconds. !/bin/bash do am start --user 0 -a android.intent.action.MAIN -n com.metasploit.stage/.MainActivity

sleep 20 done

  • Are you open to using an automation software, such as Tasker? It can run your payload at desired time and intervals. Otherwise, have you considered using your payload within a while loop? E.g. while true; do PAYLOAD_WITH_SLEEP; done – Firelord Jan 21 at 7:50
  • no i injected to an application. So now the Main activity is no longer used. so i found out the applications Main Activity and even coded the script for it. But i want that the app should not open but just run in background ! – Zibran Jan 23 at 4:01

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.