💻Networking

routing and other important networking concepts regarding PenTesting

Routing

get route table:

ip route
route -n

add a route

ip route add <net_id>/<mask> via <net_getaway>

meterpreter:

route add x.x.x.0/24 1 (this is the session you want this to add to)
route list
//You should see the route now.

//Then go back into your session by:
sessions -i 1
I followed this guide then portfwd add for whatever port I found
upgrade a shell to meterperter over pivot

Last updated

Was this helpful?