> For the complete documentation index, see [llms.txt](https://kyou00.gitbook.io/xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kyou00.gitbook.io/xyz/commands/view/linux/port-forward/rpivot.md).

# rpivot

<pre><code>cd ~/rpivot
<strong># Attack machine
</strong>python2.7 server.py --proxy-port 9050 --server-port 9999 --server-ip 0.0.0.0

<strong># Pivot machine
</strong><strong># Just transfer the whole directory of rpivot
</strong>scp -r rpivot/ ubuntu@10.129.78.39:/tmp
cd /tmp
python2.7 client.py --server-ip 10.10.14.18 --server-port 9999
</code></pre>

<pre><code><strong># After that you can just use the proxychains
</strong>cd ~/proxychains
./proxychains4 firefox 172.16.5.135:80
./proxychains4 curl 172.16.5.135:80
</code></pre>
