Skip to content

Instantly share code, notes, and snippets.

View arthurvanderwal81's full-sized avatar

Arthur arthurvanderwal81

View GitHub Profile
@arthurvanderwal81
arthurvanderwal81 / socksproxy.js
Created January 30, 2019 04:51 — forked from telamon/socksproxy.js
Socks5 proxy implementation in Node.JS
// http://www.ietf.org/rfc/rfc1928.txt
// Tested with: curl http://www.google.se/ --socks5 1080 --proxy-user foo:bar
var States = {
CONNECTED:0,
VERIFYING:1,
READY:2,
PROXY: 3
};