I'm trying to automate scripts of an Android Metasploit payload. I can successfully automate any script on the /post module, however, I'm trying to automate geolocate, dump_calllog and others that are not on the post module. I think from what I searched in the metasploit folders that they are in /lib/rex folder. How can I add them in autorunscript so that they automate?


If I were doing this and wanted to own the process, I'd copy the scripts into the self created scripts section under ~/.msf4 then I'd call the script from there.

here is a link for custom scripting. Some scripts can be added to the /usr/share directory while others need to be placed in ~/.msf4


Here is a copy of the geolocation script from google.


| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.