Pivoting
Pivoting is a set of techniques used during red team/pentest engagements which make use of attacker-controlled hosts as logical network hops with the aim of amplifying network visibility.
Metasploit
Autoroute
add route
use post/multi/manage/autoroute
msf5 post(multi/manage/autoroute) > show options
Module options (post/multi/manage/autoroute):
Name Current Setting Required Description
---- --------------- -------- -----------
CMD autoadd yes Specify the autoroute command (Accepted: add, autoadd, print, delete, default)
NETMASK 255.255.255.0 no Netmask (IPv4 as "255.255.255.0" or CIDR as "/24"
SESSION yes The session to run this module on.
SUBNET no Subnet (IPv4, for example, 10.10.10.0)
meterpreter > run autoroute -s 192.73.79.3
[!] Meterpreter scripts are deprecated. Try post/multi/manage/autoroute.
[!] Example: run post/multi/manage/autoroute OPTION=value [...]
[*] Adding a route to 192.73.79.3/255.255.255.0...
[+] Added route to 192.73.79.3/255.255.255.0 via 192.53.57.3
[*] Use the -p option to list all active routes print routes
Port scan
Portfwd
Add port forward
Delete
LIST
Socks Proxy
Create a sock proxy
check /etc/proxychains.conf
use proxcychain
SSH
Local port forwarding
Remote port forwarding
Dynamic port forwarding
VPN Over ssh
sshuttle
reGeorge
Usage
Steps:
Example:
3proxy
SSH reverse port forwarding /w 3proxy
ICMP Tunnel
DNS Tunnel
Last updated
