Forum Thread: How to Autorun Android Command Through Shell in Meterpreter?

I've been at this for days to no avail, I'm having issues with automating persistence within android on connection of a meterpreter session.

I've been playing around with the information at this link, quite successfully I might add. however, the issue arises when I try to drop in to a shell and run commands on that shell within android.

The target is to upload a .sh file on connection, drop to a shell and then execute this command. The automation gets as far as "shell 1 process created" then ends. It's driving me up the wall.

Here is what I have written in my command file;

cd /
cd /sdcard/download
upload /root/Desktop/AndroidAutorun/
cd /
cd /sdcard/Download

As I mentioned, it executes flawlessly until shell, then nothing happens.

I'm relatively new to linux commands and am learning as I go along, please forgive me if its unbelievably obvious. Does anybody have any idea what I'm missing?

Our Best Hacking & Security Guides

New Null Byte posts — delivered straight to your inbox.

1 Response

Have you resolved the issue? I'm facing the same problem

Share Your Thoughts

  • Hot
  • Active