6

The general consensus seems to be that one sets up a listener on a server accessible by a public IP and some port forwarding. For anonymity this should be a throw-away server or a hacked box.

I've been trying to make a reverse connection over tor (hidden service serves the listener) with a simple client-side exploit. This is nothing new but requires some custom scripting to set up tor and make the meterpreter-instance call back over it's socks proxy. Doing this all in memory with no admin-rights makes it even harder.

Making the listener a hidden service solves anonymity, NAT issues and the setup on server side can be more dynamic. I was then looking in to making the victim setup easier by using the Tor2web proxies. Retrieving the meterpreter (web delivery/http meterpreter) is no problem but I only get a session 10% of the time, and when I interact with it and type 'help' it shows barely any commands. It seems that the staging does not work (my guess) The session always ends 10 seconds after it starts, regardless if I interact with it... "The session is not valid" is the error it exits with.

Does anyone have experience with reverse connections over tor2web? This article seems to make it work with Empire; http://secureallthethings.blogspot.be/2016_11_01_archive.html

  • Which meterpreter payload are you using? The stageless or staged payload? – leaustinwile May 8 at 17:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.