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 '19 at 13:37

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.

|improve this answer|||||
  • after trying all 3 (nc , netcat , ncat) I am still getting the hanging connection – t0o0tz Mar 21 '19 at 12:21

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

|improve this answer|||||
  • Isnt that what i was asking you in the comments? – Vipul Nair Dec 16 '19 at 14:16
  • Yes it helped me understand what the problem was. Thank you ! – t0o0tz Feb 19 at 17:22

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.