⭕HTTP Tunneling
Last updated
Last updated
Chisel is an open-source tunneling software written in Golang. It works by setting up a TCP tunnel and performing data transfers over HTTP, while securing it with SSH. Chisel contains both client and server components and creates a SOCKS-compliant proxy.
In this technique, the compiled Chisel binary will be dropped on the compromised system,
so this is not an OPSEC-safe technique.
We can cross-compile chisel for other operating systems and architectures with the Golang compiler
Now we can use chisel to set up the reverse tunnel.
start chisel in server mode, specify the listen port with -p and --socks5 to specify the SOCKS proxy mode.
configure a SOCKS proxy server with the Kali SSH server.
enable password authentication by uncommenting the appropriate line in the sshd_config
file. After the service is started onnect to it with ssh and supply -N to ensure commands are not executed but merely forwarded and -D to configure a SOCKS proxy.specify the IP and port to configure the SOCKS proxy.
transfer the compiled Windows version of chisel to the Windows machine through the existing reverse shell and run it:
use the tunnel: