goDoH 介绍
godoh 用 Go 语言编写的,用于实现 DNS-over-HTTPS 的验证项目,目前支持服务商包括:
Google,Cloudflare,但也包含使用传统DNS的服务。
从源码中构建 godoh :
- 确保已安装 dep ( go get -v -u github.com/golang/dep/cmd/dep)
- 克隆仓库到 $GOPATH 的 src/ 目录,相应是 sensepost/godoh
- 运行 dep ensure 来解析依赖
- 运行 make key 来生成通讯用的加密密钥
- 使用 go 构建工具或者运行 make 来构建二进制执行文件,生成文件目录位于 build/
使用方法
$ godoh -h A DNS (over-HTTPS) C2 Version: dev By @leonjza from @sensepost Usage: godoh [command] Usage: godoh [command] Available Commands: agent Connect as an Agent to the DoH C2 c2 Starts the godoh C2 server help Help about any command receive Receive a file via DoH send Send a file via DoH test Test DNS communications Flags: -d, --domain string DNS Domain to use. (ie: example.com) -h, --help help for godoh -p, --provider string Preferred DNS provider to use. [possible: google, cloudflare, raw] (default "google") Use "godoh [command] --help" for more information about a command.