1
0
Fork 0

Refactor into bypass/logger

logger
Ambrose Chua 2017-09-19 11:43:44 +08:00
parent 9c6b4a8df9
commit 93bfebe142
2 changed files with 19 additions and 2 deletions

View File

@ -4,7 +4,7 @@
A SOCKS5 proxy that logs the domains you visit. See [this article](https://www.evilsocket.net/2017/06/30/BetterCap-1-6-1-TLS-Server-Name-Indication-and-Why-We-Need-to-Encrypt-It/) for a summary on how.
```
go get github.com/serverwentdown/socks-logger
go run $GOPATH/src/github.com/serverwentdown/socks-logger/socks-logger/main.go
go get github.com/serverwentdown/bypass
go run $GOPATH/src/github.com/serverwentdown/bypass/logger/main.go
```

17
logger/main.go Normal file
View File

@ -0,0 +1,17 @@
package main
import (
"github.com/serverwentdown/bypass"
)
func main() {
conf := &socks5.Config{}
server, err := socks5.New(conf)
if err != nil {
panic(err)
}
if err := server.ListenAndServe("tcp", "127.0.0.1:8000"); err != nil {
panic(err)
}
}