GitHub - sensepost/goDoH: ?godoh - A DNS-over-HTTPS C2
source link: https://github.com/sensepost/goDoH
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
? godoh
A DNS-over-HTTPS Command & Control Proof of Concept
introduction
godoh
is a proof of concept Command and Control framework, written in Golang, that uses DNS-over-HTTPS as a transport medium. Currently supported providers include Google, Cloudflare but also contains the ability to use traditional DNS.
installation
All you would need are the godoh
binaries themselves. Binaries are available for download from the releases page as part of tagged releases.
To build godoh
from source, follow the following steps:
- Ensure you have dep installed (
go get -v -u github.com/golang/dep/cmd/dep
) - Clone this repository to your
$GOPATH
'ssrc/
directory so that it is insensepost/goDoH
- Run
dep ensure
to resolve dependencies - Run
make key
to generate a unique encryption key to use for communication - Use the
go
build tools, or runmake
to build the binaries in thebuild/
directory
usage
$ godoh -h
A DNS (over-HTTPS) C2
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.
license
godoh
is licensed under a GNU General Public v3 License. Permissions beyond the scope of this license may be available at http://sensepost.com/contact/.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK