Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
go-http-proxy-to-socks — CLI MITM proxy that converts SOCKS4/SOCKS5 into HTTP/HTTPS/HTTP2/HTTP3 proxy with transparent TCP/UDP redirection, ARP/NDP/DNS spoofing, traffic sniffing, and packet capture. Pure Go, no libpcap. | Kitploit
Tools/GitHubGitHub/shadowy-pycoder/go-http-proxy-to-socks
Packet Sniffing & AnalysisWeb Proxies & InterceptionIDS/IPS EvasionNetwork SecurityPenetration TestingUtilities & FrameworksDNS FuzzingRed TeamingDNS Analysis
GitHubshadowy-pycoder/go-http-proxy-to-socks

go-http-proxy-to-socks

CLI MITM proxy that converts SOCKS4/SOCKS5 into HTTP/HTTPS/HTTP2/HTTP3 proxy with transparent TCP/UDP redirection, ARP/NDP/DNS spoofing, traffic sniffing, and packet capture. Pure Go, no libpcap.

View Repository
6936113 days agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

GoHPTS - HTTP(S) and TCP/UDP transparent proxy to SOCKS4/SOCKS5 proxy (chain) written in Go

License: GPL v3 Go Reference GitHub go.mod Go version AUR Version AUR Last Modified AUR Maintainer Docker Pulls GitHub Release GitHub Downloads (all assets, all releases) GitHub Downloads (all assets, latest release)

GoHPTS - Colors example

Table of contents

  • Introduction
  • Features
  • Installation
  • Usage
    • Configuration via CLI flags
    • Configuration via YAML file
  • Transparent proxy
    • redirect (via NAT and SO_ORIGINAL_DST)
    • Auto configuration for redirect mode
    • tproxy (via MANGLE and IP_TRANSPARENT)
    • Auto configuration for tproxy mode
    • UDP support
    • Android support
    • YAML configuration
  • Traffic sniffing
    • JSON format
    • Colored format
  • HTTP2 and HTTP3 support
    • Example setup using self-signed certificate
    • Test connection
    • Test connection in a browser
  • IPv4 and IPv6 support
  • ARP spoofing
  • NDP spoofing
  • DNS spoofing
  • Packet Capture
  • Network Namespaces
    • Playground setup
    • Usage examples
  • Mixed Server
  • Links
  • Contributing
  • License

Introduction

[Back]

GoHPTS CLI tool is a bridge between HTTP clients and a SOCKS5 proxy server or multiple servers (chain). It listens locally as an HTTP proxy, accepts standard HTTP or HTTPS (via CONNECT) requests and forwards the connection through a SOCKS5 proxy. Inspired by http-proxy-to-socks and Proxychains

Possible use case: you need to connect to external API via Postman, but this API only available from some remote server. The following commands will help you to perform such a task:

Create SOCKS5 proxy server via ssh:

ssh <remote server> -D 1080 -Nf

Create HTTP-to-SOCKS5 connection with gohpts

gohpts -s :1080 -l :8080

Specify http server in proxy configuration of Postman

Features

[Back]

  • Proxy Chain functionality
    Supports strict, dynamic, random, round_robin chains of SOCKS4/SOCKS5 proxy

  • Transparent proxy
    Supports redirect (SO_ORIGINAL_DST) and tproxy (IP_TRANSPARENT) modes

  • IPv4 and IPv6 support
    Operates in IPv4-only, IPv6-only or dual stack modes

  • TCP and UDP Transparent proxy
    tproxy and tlocal (IP_TRANSPARENT) handle TCP and UDP traffic

  • Traffic sniffing
    Proxy is able to parse HTTP headers, TLS handshake, DNS messages and more

  • ARP spoofing
    Proxy entire subnets with ARP spoofing approach

  • NDP spoofing
    Proxy IPv6 connections using Router/Neighbor Advertisement and RDNSS injections.

  • DNS spoofing
    Redirect clients to arbitrary domains using DNS records manipulation

  • Packet Capture
    Capture traffic into txt/pcap/pcapng files and analyze with Wireshark

  • DNS Leak Protection
    DNS resolution occurs on SOCKS5 server side.

  • CONNECT Method Support
    Supports HTTP CONNECT tunneling, enabling HTTPS and other TCP-based protocols.

  • HTTP2/HTTP3 Support
    Supports modern HTTP/2 and HTTP/3 transport, enabling efficient multiplexed connections over TLS 1.3

  • Network Namespaces support
    Supports custom Linux network namespaces for listening sockets and outbound connections

  • Trailer Headers Support
    Handles HTTP trailer headers

  • Chunked Transfer Encoding
    Handles chunked and streaming responses

  • SOCKS5 Authentication Support
    Supports username/password authentication for SOCKS5 proxies.

  • HTTP Authentication Support
    Supports username/password authentication for HTTP proxy server.

  • Lightweight and Fast
    Designed with minimal overhead and efficient request handling.

  • Cross-Platform
    Compatible with all major operating systems.

Installation

[Back]

  • Arch Linux/CachyOS/EndeavourOS

    yay -S gohpts
    

    Or using paru:

    paru -S gohpts
    
  • Download the binary for your platform from Releases page:

    GOHPTS_RELEASE=v1.15.6; wget -v https://github.com/shadowy-pycoder/go-http-proxy-to-socks/releases/download/$GOHPTS_RELEASE/gohpts-$GOHPTS_RELEASE-linux-amd64.tar.gz -O gohpts && tar xvzf gohpts && mv -f gohpts-$GOHPTS_RELEASE-linux-amd64 gohpts && ./gohpts -h
    
  • Install using go install command (requires Go 1.26 or later):

    CGO_ENABLED=0 go install -ldflags "-s -w" -trimpath github.com/shadowy-pycoder/go-http-proxy-to-socks/cmd/gohpts@latest
    

    This will install the gohpts binary to your $GOPATH/bin directory.

  • Build from source:

    git clone https://github.com/shadowy-pycoder/go-http-proxy-to-socks.git
    cd go-http-proxy-to-socks
    make build
    ./bin/gohpts
    
  • Run in docker:

    docker run -it --privileged --network host -v "$PWD/gohpts.yaml:/config.yaml" shadowypycoder/gohpts:latest -f config.yaml
    

Usage

[Back]

gohpts -h
   _____       _    _ _____ _______ _____
  / ____|     | |  | |  __ \__   __/ ____|
 | |  __  ___ | |__| | |__) | | | | (___
 | | |_ |/ _ \|  __  |  ___/  | |  \___ \
 | |__| | (_) | |  | | |      | |  ____) |
  \_____|\___/|_|  |_|_|      |_| |_____/

GoHPTS: HTTP(S) Proxy to SOCKS4/SOCKS5 proxy by shadowy-pycoder
GitHub: https://github.com/shadowy-pycoder/go-http-proxy-to-socks
Codeberg: https://codeberg.org/shadowy-pycoder/go-http-proxy-to-socks

Usage: gohpts [OPTIONS]
OPTIONS:
  General:
  -h         Show this help message and exit
  -v         Show version and build information
  -D         Run as a daemon (provide -logfile to see logs)
  -I         Display list of network interfaces and exit
  -f         Path to proxy configuration file in YAML format
Download Tool