
Originally Posted by
phoenix910
Hi guys, I was just had a quick metasploiting question. Situation is this:
Say I'm doing a pentest remotely, and I have that box facing the net with a public IP (77.77.77.77 for omen's sake), and have a exploit/multi/handler listening for a reverse TCP connection, which will upload meterpreter handler. Now, this other box's reverse connection comes from within the internal network, via NAT, past their router into 77.77.77.77, which connects back through their public IP (we'll say 66.66.66.66) onto the computer on the LAN, who's IP is 192.168.0.2. Now, from there I want to pivot and scan other PC's on the network through that box, because it has permissions to access them (you get where I'm coming from, you penetrate one box, manipulate priveleges etc., that it has with other boxes). Now, I know you have to background the session and then:
route add ip subnet session#
In the form of this for the given example:
route add 192.168.0.0 255.255.0.0 1
But, my question is this: Is that the correct command? Because I've tried scanning the router from there in this test scenario, and it doesn't work with nmap or any of the other auxiliary modules. Am I doing something wrong? Thanks for taking the time to read,
~phoenix910