All Projects → h12w → Socks

h12w / Socks

Licence: bsd-2-clause
A SOCKS (SOCKS4, SOCKS4A and SOCKS5) Proxy Package for Go

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Socks

microsocks11
A cross-platform SOCKS5 library and server based on the microsocks project.
Stars: ✭ 22 (-93.8%)
Mutual labels:  socks, socks5
arch-privoxyvpn
Docker build script for Arch Linux base with Privoxy and OpenVPN
Stars: ✭ 55 (-84.51%)
Mutual labels:  socks, socks5
python-socks
Core proxy client (SOCKS4, SOCKS5, HTTP) functionality for Python
Stars: ✭ 40 (-88.73%)
Mutual labels:  socks, socks5
sx
🖖 Fast, modern, easy-to-use network scanner
Stars: ✭ 1,267 (+256.9%)
Mutual labels:  socks, socks5
Socks5
A full-fledged high-performance socks5 proxy server written in C#. Plugin support included.
Stars: ✭ 286 (-19.44%)
Mutual labels:  socks5, socks
nimSocks
A filtering SOCKS proxy server and client library written in nim.
Stars: ✭ 51 (-85.63%)
Mutual labels:  socks, socks5
socks5 list
Auto-updated SOCKS5 proxy list + proxies for Telegram
Stars: ✭ 210 (-40.85%)
Mutual labels:  socks, socks5
Reflow
Content-routable socks5 proxy switcher for your entire LAN.
Stars: ✭ 170 (-52.11%)
Mutual labels:  socks5, socks
3proxy
3proxy - tiny free proxy server
Stars: ✭ 2,493 (+602.25%)
Mutual labels:  socks, socks5
Pummel
Socks5 Proxy HTTP/HTTPS-Flooding (cc) attack
Stars: ✭ 53 (-85.07%)
Mutual labels:  socks, socks5
Tor Socks Proxy
🐳 Tiny Docker(🤏 10MB) image as 🧅 Tor SOCKS5 proxy 🛡
Stars: ✭ 218 (-38.59%)
Mutual labels:  socks5, socks
Socks5
SOCKS Protocol Version 5 Library in Go. Full TCP/UDP and IPv4/IPv6 support
Stars: ✭ 321 (-9.58%)
Mutual labels:  socks5, socks
Socks
Fully featured SOCKS proxy client supporting SOCKSv4, SOCKSv4a, and SOCKSv5. Includes Bind and Associate functionality.
Stars: ✭ 200 (-43.66%)
Mutual labels:  socks5, socks
Prox5
🧮 SOCKS5/4/4a 🌾 validating proxy pool and upstream SOCKS5 server for 🤽 LOLXDsoRANDum connections 🎋
Stars: ✭ 39 (-89.01%)
Mutual labels:  socks, socks5
Brook
Brook is a cross-platform strong encryption and not detectable proxy. Zero-Configuration. Brook 是一个跨平台的强加密无特征的代理软件. 零配置.
Stars: ✭ 12,694 (+3475.77%)
Mutual labels:  socks5, socks
Socks5
A full-fledged high-performance socks5 proxy server written in C#. Plugin support included.
Stars: ✭ 331 (-6.76%)
Mutual labels:  socks, socks5
3proxy
3proxy - tiny free proxy server
Stars: ✭ 2,263 (+537.46%)
Mutual labels:  socks5, socks
Psiphon
A multi-functional version of a popular network circumvention tool
Stars: ✭ 169 (-52.39%)
Mutual labels:  socks5, socks
asyncio-socks-server
A SOCKS proxy server implemented with the powerful python cooperative concurrency framework asyncio.
Stars: ✭ 154 (-56.62%)
Mutual labels:  socks, socks5
rsp
Rapid SSH Proxy
Stars: ✭ 223 (-37.18%)
Mutual labels:  socks, socks5

SOCKS

GoDoc

SOCKS is a SOCKS4, SOCKS4A and SOCKS5 proxy package for Go.

Quick Start

Get the package

go get -u "h12.io/socks"

Import the package

import "h12.io/socks"

Create a SOCKS proxy dialling function

dialSocksProxy := socks.Dial("socks5://127.0.0.1:1080?timeout=5s")
tr := &http.Transport{Dial: dialSocksProxy}
httpClient := &http.Client{Transport: tr}

User/password authentication

dialSocksProxy := socks.Dial("socks5://user:[email protected]:1080?timeout=5s")

Example

package main

import (
	"fmt"
	"io/ioutil"
	"log"
	"net/http"

	"h12.io/socks"
)

func main() {
	dialSocksProxy := socks.Dial("socks5://127.0.0.1:1080?timeout=5s")
	tr := &http.Transport{Dial: dialSocksProxy}
	httpClient := &http.Client{Transport: tr}
	resp, err := httpClient.Get("http://www.google.com")
	if err != nil {
		log.Fatal(err)
	}
	defer resp.Body.Close()
	if resp.StatusCode != http.StatusOK {
		log.Fatal(resp.StatusCode)
	}
	buf, err := ioutil.ReadAll(resp.Body)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(string(buf))
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].