Skip to content

Instantly share code, notes, and snippets.

View hunterhug's full-sized avatar
🎯
Focusing

hunterhug

🎯
Focusing
View GitHub Profile
@hunterhug
hunterhug / aws.go
Created October 9, 2017 10:43
AWS AuthSignature
```
// Python版本重构
// 定义了一个连接结构体
type ESConnection struct {
mux sync.RWMutex
Client *http.Client
Host string
Auth bool
Aws AwsAuth
}
@hunterhug
hunterhug / linux.md
Created September 30, 2017 09:53
linux
netstat -lntp

  -l, --listening
       Show only listening sockets.  (These are omitted by default.)
   --numeric , -n
       Show numerical addresses instead of trying to determine symbolic host, port or user names.
   -p, --program
       Show the PID and name of the program to which each socket belongs.
 [--tcp|-t] [--udp|-u] [--raw|-w]
@hunterhug
hunterhug / fuckGTW.md
Last active October 11, 2017 09:05
linux operation

SSH高级功能

代理

ssh -ND 1082 ubuntu@1.1.1.1

在本地开一个1082端口,做动态转发,暴露为socks5协议。程序需要明确生命使用该代理。比如 proxychains4google ext SwitchyOmega