Pivoting with metasploit and autoroute

  • Post


  • Target 1 : 10.10.10.2
  • Target 2: 192.168.1.8
  1. Exploit the first target
  2. Open meterpreter session
    1. If the first session is not meterpreter, upgrade it
    2. ​ sessions -u 1 # open a new session (2)
  3. Modifiy routing table
    1. post/multi/manage/autoroute
      set SESSION 2
      set SUBNET 192.198.1.0
      exploit
  4. Attack the second target