0

I put a reverse shell on a machine in my lab enviornment and it seems to just hang after there is a connection in netcat - I'm not sure why this is.

I've tried different ports but no luck. See screenshot below - any ideas are much appreciated

using port 31337

using port 9009

  • the reverse shell exits after establishing a connection.what are you using to establish the connection? – Vipul Nair Mar 21 at 13:37
0

I suggest that you try using either ncat or netcat instead of nc. Plus Ncat support -e function for executing, and i do not think that nc does in the current version.

  • after trying all 3 (nc , netcat , ncat) I am still getting the hanging connection – t00tz Mar 21 at 12:21
0

The issue was my choice of shell from msfvenom - I was using windows/shell/reverse_tcp but that requires a meterpreter connection , I wanted to use netcat so I needed to use windows/shell_reverse_tcp

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.