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

1
  • the reverse shell exits after establishing a connection.what are you using to establish the connection?
    – yeah_well
    Commented Mar 21, 2019 at 13:37

2 Answers 2

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.

1
  • after trying all 3 (nc , netcat , ncat) I am still getting the hanging connection
    – t0o0tz
    Commented Mar 21, 2019 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

2
  • Isnt that what i was asking you in the comments?
    – yeah_well
    Commented Dec 16, 2019 at 14:16
  • Yes it helped me understand what the problem was. Thank you !
    – t0o0tz
    Commented Feb 19, 2020 at 17:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .