Pivoting via Armitage

So far, we have seen methods for pivoting in scenarios in which the machines are in the same subnet and are reachable. However, during a RedTeam activity, we may come across a network which has different subnets that we know exist but are not reachable by the system we have a Meterpreter shell on. In this section, we will look at an example of how to pivot to those networks.

The Windows system has a command-line tool that makes it possible to view the routing table. This tool is called route. The routing table consists of destinations, routes, and next hops. These entries define a route to a destination network.

To view a routing table of the system, we have to do the following:

  1. Right-click on the host and go to Meterpreter ...

Get Hands-On Red Team Tactics now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.