Metasploit-framework: msfconsole doesn't show the interpreter after session opens

Created on 10 Sep 2020  路  9Comments  路  Source: rapid7/metasploit-framework

metasploit interpreter doesn't show up
after session established we expect to have the shell to command the connection but it hangs!
msfconsole --version
5.0.99-dev and also tried latest version yet on kali 2020.3 which is 5.0.101-dev
still the same!

All 9 comments

need more information please...
can you give me the last 1k line of ~/.msf4/logs/framework.log ???
what operating system is your victim running?
and the last question...WHY DO YOU USE generic/shell_reverse_tcp?

and also your actions were wrong

you should type "use multi/handler" first
and type your variables like lhost,lport,and payload
but you dont even choose a payload...you use a default payload

@ebrahimkarimi you'll need to provide more information, such as how you generated the payload.
You may also need to do set payload .... before running the module (unless you're actually expecting a generic shell session).

i'm so sorry @GetRektBoy724 abd @timwr for late response i don't know why didn't i get notified!
so the target os is Android which is my phone with Android 9
and i did set the payload this time but nothing changes.
Screenshot_2020-09-25_04-30-34
and here is the log file you asked for
framework.log

@ebrahimkarimi how are you generating the payload? msfvenom? Can you show the command you use?
set LHOST 0.0.0.0 is most likely the problem. You need to set LHOST to the same host/ip you use when you create the payload.

@ebrahimkarimi how are you generating the payload? msfvenom? Can you show the command you use?
set LHOST 0.0.0.0 is most likely the problem. You need to set LHOST to the same host/ip you use when you create the payload.

i use msfvenom to generate it and lhost 0.0.0.0 is not a problem cause i use ngrok and i open the required port in firewalld and also ive done all of these before!

set LHOST 0.0.0.0 is a problem. You need to set it otherwise you can't interact with the payload after it stages which is probably what you're seeing here.
You can use set ReverseListenerBindAddress 127.0.0.1 to ensure it works with ngrok.
Try set LHOST to the LHOST you used in msfvenom, I think it will solve this problem.

@timwr I've set LHOST to 0.0.0.0 and it works if it wasn't working, it wouldn't open the session at the first place

Was this page helpful?
0 / 5 - 0 ratings