GO KALI FREE

Chisel

Post Exploitation

Intermediatelow risk

Chisel is a fast TCP/UDP tunnel utility that encapsulates traffic over an HTTP transport channel, secured via SSH. It is useful for traversing firewall boundaries and pivoting inside network environments.

Installation

sudo apt install chisel

Basic Syntax

chisel [command] [options]

Quick Facts

Full Name
Chisel
License
MIT
Language
Go
Interface
CLI
Category
Tunneling / Pivoting
Protocol
HTTP over SSH

Tool Overview

Chisel is a fast TCP/UDP tunnel transported over HTTP, secured via SSH encryption. It is designed for penetration testing scenarios where traditional VPNs or direct connections are blocked by firewalls.

With single-binary deployment on Linux, Windows, and macOS, Chisel provides both forward and reverse proxy capabilities, making it a versatile tool for network pivoting and firewall evasion.

Common Commands

chisel --helpShow top-level help with the server and client subcommands
chisel --versionPrint the chisel version (must match between server and client)
chisel server --helpShow all server-mode options
chisel client --helpShow all client-mode options and the remote spec format
chisel server -p 8080 --reverseStart a server allowing reverse (R:) tunnels from clients
chisel server -p 8080 --socks5Start a server that exposes a built-in SOCKS5 proxy endpoint
chisel server -p 8080 --reverse --auth <USER>:<PASS>Start a reverse server protected by credentials
chisel server -p 8080 --reverse -vStart a reverse server with verbose logging
chisel server -p 8080 --key "mysecret"Start a server with a seeded, reproducible key pair
chisel server -p 8443 --tls-key server.key --tls-cert server.crt --reverseStart a TLS-wrapped reverse server using your own certificate
chisel server -p 8080 --authfile users.jsonStart a server that reads user:pass and allowed remotes from a file
chisel client 10.10.10.10:8080 socksConnect and open a local SOCKS5 proxy on 127.0.0.1:1080
chisel client 10.10.10.10:8080 R:socksConnect and expose a SOCKS5 proxy on the server side (pivot)
chisel client 10.10.10.10:8080 R:2222:127.0.0.1:22Reverse-forward server port 2222 to the client's local SSH
chisel client 10.10.10.10:8080 8000:example.com:80Forward local port 8000 to example.com:80 through the tunnel
chisel client 10.10.10.10:8080 R:8080:127.0.0.1:8080Reverse-forward a web service back to the operator's box
chisel client 10.10.10.10:8080 R:53:8.8.8.8:53/udpReverse-forward a UDP service (DNS) over the tunnel
chisel client --auth <USER>:<PASS> 10.10.10.10:8080 R:socksConnect to an authenticated server and open a reverse SOCKS proxy
chisel client --fingerprint <FP> 10.10.10.10:8080 R:socksPin the server key fingerprint to prevent MITM
chisel client --keepalive 25s 10.10.10.10:8080 R:socksSend keepalive pings to survive NAT/idle timeouts
chisel client --proxy http://192.168.1.1:8080 10.10.10.10:8080 R:socksReach the server through an upstream HTTP CONNECT proxy
chisel client --tls-skip-verify https://10.10.10.10:8443 R:socksConnect over TLS to an HTTPS server ignoring cert validation
chisel client --max-retry-count 10 10.10.10.10:8080 R:socksLimit reconnection attempts before giving up
chisel client --header "Authorization: Bearer xxx" 10.10.10.10:8080 R:socksAdd a custom HTTP header to blend with legitimate traffic
chisel client --hostname internal.example.com 10.10.10.10:8080 R:socksOverride the Host header sent to the server for routing/fronting

Step-by-Step Guide

  1. 1Initialize the listening component on your testing machine
  2. 2Move the application binary to the compromised server
  3. 3Execute the client connection back to your machine
  4. 4Route your attacks through the established bridge
  5. 5Ensure local proxy settings match the newly created tunnel

Use Cases

Firewall Bypass

Tunnel traffic through HTTP to bypass firewalls.

SOCKS Proxy

Route traffic through remote network via SOCKS.

Port Forwarding

Expose internal services to external systems.

Reverse Shell Proxy

Forward shells and tool traffic over tunnel.

Key Features

Related Tools

sshuttle

Post Exploitation

sshuttle acts as a transparent proxy server that forwards traffic over an SSH connection, configuring local routing rules without requiring administrator privileges on the remote server host.

ProxyChains

Post Exploitation

ProxyChains forces TCP connections made by arbitrary applications to follow user-configured proxy networks (such as TOR or SOCKS4/5 configurations), useful for obfuscation and internal pivoting.

Ligolo-ng

Maintaining Access

Ligolo-ng is a simple, lightweight, and fast tunneling tool that uses a TUN interface. It allows penetration testers to establish tunnels from a reverse TCP/TLS connection without needing SOCKS proxies.

NetExec

Post Exploitation

NetExec (formerly CrackMapExec successor) is a post-exploitation tool for enumerating and attacking Active Directory environments. It automates SMB, WinRM, LDAP, and SSH attacks across large networks with support for Kerberos, NTLM, and pass-the-hash authentication.

CrackMapExec

Post Exploitation

CrackMapExec (CME) is a post-exploitation tool for pentesting Windows and Active Directory networks. It can enumerate users, spray passwords, execute commands, and move laterally.

Empire

Post Exploitation

Empire is an open-source post-exploitation and command-and-control (C2) framework originally created by @harmj0y and now maintained by BC-Security. It uses PowerShell and Python-based agents to model adversarial persistent access behaviors for authorized security testing, red team engagements, and defensive detection engineering. Empire provides encrypted communications, modular capabilities, and a flexible agent system for extended operations against Windows and Linux environments.

Related Cybersecurity Guides

Active Directory · Advanced

Active Directory Fundamentals: Windows Network Domains

A comprehensive introduction to Microsoft Active Directory covering domain services, LDAP, Group Policy, authentication protocols, and security fundamentals for Windows enterprise environments.

Active Directory · Advanced

Lateral Movement: Moving Through Network Environments

A comprehensive guide to lateral movement techniques in Windows networks including pass-the-hash, pass-the-ticket, PSExec, WMI, DCOM, and WinRM for authorized penetration testing.

Active Directory · Advanced

Pass-the-Hash: Understanding NTLM Authentication Attacks

An in-depth look at pass-the-hash attacks against NTLM authentication, how they work, real-world exploitation scenarios, detection techniques, and defense strategies.

Active Directory · Advanced

BloodHound Guide: Mapping Active Directory Relationships

Learn how to use BloodHound and SharpHound for Active Directory reconnaissance, attack path analysis, privilege escalation detection, and security assessment.

Frequently Asked Questions

What is Chisel used for?

Chisel creates secure TCP/UDP tunnels over HTTP with SSH encryption, enabling firewall bypass and network pivoting during penetration tests. It provides both direct and reverse tunneling modes.

How does Chisel bypass firewalls?

Chisel encapsulates all traffic within HTTP connections, which are typically allowed through corporate firewalls and proxies. The SSH encryption provides security while the HTTP protocol provides traversal.

What is the difference between Chisel and Ligolo-ng?

Chisel operates at the application layer with HTTP transport, while Ligolo-ng creates a TUN interface for transparent network-layer pivoting. Chisel is easier to set up; Ligolo-ng is more transparent to tools.

Does Chisel support reverse connections?

Yes, Chisel supports reverse (client-initiated) connections where the compromised system connects out to your server, bypassing inbound firewall restrictions. This is ideal for most penetration testing scenarios.

Tags

#post-exploitation#pivoting#tunneling#network-security

Ethical Usage Notice

This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.