CLI MITM प्रॉक्सी जो SOCKS4/SOCKS5 को HTTP/HTTPS/HTTP2/HTTP3 प्रॉक्सी में बदलता है, पारदर्शी TCP/UDP रीडायरेक्शन, ARP/NDP/DNS स्पूफिंग, ट्रैफिक स्निफिंग और पैकेट कैप्चर के साथ। पूर्णतः Go, libpcap के बिना।

GoHPTS CLI टूल HTTP क्लाइंट और SOCKS5 प्रॉक्सी सर्वर या कई सर्वर (चेन) के बीच एक ब्रिज है। यह स्थानीय रूप से एक HTTP प्रॉक्सी के रूप में सुनता है, मानक HTTP
या HTTPS (CONNECT के माध्यम से) अनुरोध स्वीकार करता है और कनेक्शन को SOCKS5 प्रॉक्सी के माध्यम से अग्रेषित करता है। http-proxy-to-socks और Proxychains से प्रेरित।
संभावित उपयोग का मामला: आपको Postman के माध्यम से बाहरी API से कनेक्ट करने की आवश्यकता है, लेकिन यह API केवल किसी दूरस्थ सर्वर से ही उपलब्ध है। निम्नलिखित कमांड आपको ऐसा कार्य करने में मदद करेंगे:
ssh के माध्यम से SOCKS5 प्रॉक्सी सर्वर बनाएँ:```shell
ssh -D 1080 -Nf
`gohpts` के साथ HTTP-to-SOCKS5 कनेक्शन बनाएं```shell
gohpts -s :1080 -l :8080
Postman के proxy configuration में http server निर्दिष्ट करें
Proxy Chain कार्यक्षमता
SOCKS4/SOCKS5 proxy की strict, dynamic, random, round_robin chains का समर्थन करता है
Transparent proxy
redirect (SO_ORIGINAL_DST) और tproxy (IP_TRANSPARENT) modes का समर्थन करता है
IPv4 और IPv6 समर्थन
IPv4-only, IPv6-only या dual stack modes में संचालित होता है
TCP और UDP Transparent proxy
tproxy और tlocal (IP_TRANSPARENT) TCP और UDP traffic को संभालते हैं
Traffic sniffing
Proxy HTTP headers, TLS handshake, DNS messages और अन्य को parse करने में सक्षम है
ARP spoofing
ARP spoofing दृष्टिकोण का उपयोग करके पूरे subnets को proxy करें
NDP spoofing
Router/Neighbor Advertisement और RDNSS injections का उपयोग करके IPv6 connections को proxy करें।
DNS spoofing
DNS records manipulation का उपयोग करके clients को मनमाने domains पर redirect करें
Packet Capture
Traffic को txt/pcap/pcapng files में capture करें और Wireshark के साथ analyze करें
DNS Leak Protection
DNS resolution SOCKS5 server side पर होता है।
CONNECT Method समर्थन
HTTP CONNECT tunneling का समर्थन करता है, जिससे HTTPS और अन्य TCP-based protocols सक्षम होते हैं।
HTTP2/HTTP3 समर्थन
आधुनिक HTTP/2 और HTTP/3 transport का समर्थन करता है, जिससे TLS 1.3 पर कुशल multiplexed connections सक्षम होते हैं
Network Namespaces समर्थन
listening sockets और outbound connections के लिए custom Linux network namespaces का समर्थन करता है
Trailer Headers समर्थन
HTTP trailer headers को संभालता है
Chunked Transfer Encoding
chunked और streaming responses को संभालता है
SOCKS5 Authentication समर्थन
SOCKS5 proxies के लिए username/password authentication का समर्थन करता है।
HTTP Authentication समर्थन
HTTP proxy server के लिए username/password authentication का समर्थन करता है।
हल्का और तेज़
न्यूनतम overhead और कुशल request handling के साथ डिज़ाइन किया गया।
Cross-Platform
सभी प्रमुख operating systems के साथ संगत।
या paru का उपयोग करके: ```shell
paru -S gohpts
- [Releases](https://github.com/shadowy-pycoder/go-http-proxy-to-socks/releases) पृष्ठ से अपने प्लेटफ़ॉर्म के लिए बाइनरी डाउनलोड करें: ```shell
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
go install कमांड का उपयोग करके इंस्टॉल करें (Go 1.26 या बाद का संस्करण आवश्यक है): ```shell
CGO_ENABLED=0 go install -ldflags "-s -w" -trimpath github.com/shadowy-pycoder/go-http-proxy-to-socks/cmd/gohpts@latest
यह gohpts बाइनरी को आपकी $GOPATH/bin डायरेक्टरी में इंस्टॉल करेगा।
[वापस]```shell 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