Code Monkey home page Code Monkey logo

socks's Introduction

SOCKS

Build Status GoDoc

SOCKS implements SOCKS4/5 Proxy Protocol and HTTP Tunnel which can help you get through firewall. The cmd/socksd build with package SOCKS, supports cipher connection which crypto method is rc4, des, aes-128-cfb, aes-192-cfb and aes-256-cfb, upstream which can be shadowsocks or socsk5.

Install

Assume you have go installed, you can install from source.

go get github.com/eahydra/socks

If you want to install cmd/socksd, please read the README.md

socks's People

Contributors

eahydra avatar superfashi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

socks's Issues

Incorrect socks5 client max request size in the handshaking

According to RFC 1928 , the max request size should be 262 bytes: 1(ver) + 1(rep) + 1(rsv) + 1(atype) + 1(domain length) + 255(domain, 2^8) + 2(port)

   +----+-----+-------+------+----------+----------+
    |VER | REP |  RSV  | ATYP | BND.ADDR | BND.PORT |
    +----+-----+-------+------+----------+----------+
    | 1  |  1  | X'00' |  1   | Variable |    2     |
    +----+-----+-------+------+----------+----------+

https://github.com/eahydra/socks/blob/master/socks5_client.go#L222, so here 263 is not correct.

socksd的配置文件

请问socks.config中第一行的address可以不填端口号吗?以及PAC与proxies中的配置是不是很多可以重复?

more `cd` case judgement for unexpected result

As running, I found a bug that will trigger the if part of the code incorrectly near here, and the following error would occur:

panic: runtime error: index out of range

goroutine xxx [running]:
panic(0x713020, 0xc04200c040)
	D:/Go/src/runtime/panic.go:500 +0x1af
github.com/eahydra/socks.(*Socks4Client).Dial(0xc042164bc0, 0x7675cb, 0x3, 0xc04224db00, 0x12, 0x0, 0x0, 0x0, 0x0)
	C:/Users/SuperFashi/GoProjects/src/github.com/eahydra/socks/socks4.go:136 +0x9f8
github.com/eahydra/socks.(*Socks4Client).Dial-fm(0x7675cb, 0x3, 0xc04224db00, 0x12, 0x4, 0xc04224db00, 0x12, 0x0)

A patch would be simple.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.