port forward & pivoting with meterpreter

Categories: Security, tech

Let’s assume u attacked machine with 2 nic cards

our IP is

first, one ip is that you reach it from

and in ifconfig shows, the machine has a different  IP

you can scan the network 10.0.2.x via meterpreter


we can connect to the RDP server of the machine

via adding a route from out local port 9389 to the machine

so now we can connect to our local port and it will redirect us to


pivoting is easier to do with Metasploit  session

the last number is the session id

so now u can attack the machine directly


have fun!


    Leave a Reply

    Your email address will not be published. Required fields are marked *


    This site uses Akismet to reduce spam. Learn how your comment data is processed.