Refactor into bypass/logger
parent
9c6b4a8df9
commit
93bfebe142
|
@ -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
|
||||
```
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue