Pivots

SOCKS5

Start SOCKS5 Proxy

socks5 start | or --bind 127.0.0.1 --port 1080
socks5 stop

ProxyChains Configuration

sudo nano /etc/proxychains.conf

socks5 127.0.0.1 1081

PORT FORWARDING

Local

portfwd add --bind <local_host>:<local_port> --remote <target_host>:<target_port>
portfwd add --bind 127.0.0.1:1337 --remote 10.10.10.5:3306

Remote

rportfwd add --remote <pivot_host>:<pivot_port> --bind <attacker_host>:<attacker_port>
rportfwd add --remote 0.0.0.0:4444 --bind 127.0.0.1:4444

NAMED PIPES

Named pipe is a concept for creating communication between a server and a client; this can be a process on computer A and a process on computer B. Each pipe has a unique name following the format of \\ServerName\pipe\PipeName or \\.\pipe\PipeName. In most cases, one of your tasks would be to blend in as much as possible.

circle-info

Enumerating named pipes on Windows Systems can be done via the ls command in PowerShell followed by the \\.\pipe\ directory.

After starting the pipe pivot listener, we need to generate a pivot implant using the generate command.

Last updated