Pivot in a Case
Last updated
Last updated
If you have a VPN to target machine, but just running in the windows machine, and you wanna attack from Kali Linux.
Fire up the windows and establish the VPN connection, make sure you can access the target machine.
Setup connection Host-Only connection between windows machine and kali machine. make sure you can communicate with kali machine.
Upload chisel.exe to the windows machine, and install chisel in the Kali.
Setup chisel server in the Kali Machine
Then connect to the chisel server with windows machine.
Set /etc/proxychains.conf
with socks5 proxy
Test connection
Important: This connection will reproduce source IP in the packet with the windows ip, so you can't do ping, because Kali machine can't receive the ICMP packet. If you do nmap, always use -Pn
for ignoring the ping to discover the machine.
How to setup reverse shell?
ref: https://www.youtube.com/watch?v=mOuqPROMmZc
You need another forward proxy from windows machine to the kali machine.
there is 2 options based on the middle machine. Linux Machine & have ssh
Your reverse shell:
netcat listening shell:
How about setting up your burpsuite?
ref: https://www.youtube.com/watch?v=Q5ujOEXGOo8
requirement:
1. tunnel connection with socks5 127.0.0.1 9666
--> use chisel above
Set your browser proxy to burp proxy
Just let it go :D