2个版本
0.1.1 | 2020年3月30日 |
---|---|
0.1.0 | 2020年3月30日 |
#73 in #standalone
180KB
4.5K SLoC
rust-dnscat
dnscat = "0.1"
客户端CLI使用方法
首先使用以下命令安装独立的dnscat客户端:
cargo install dnscat-client
$ dnscat-client -h
dnscat-client 0.1
avitex <[email protected]>
DNSCAT client
USAGE:
dnscat-client [FLAGS] [OPTIONS] <domain>
ARGS:
<domain> DNS endpoint name
FLAGS:
--command If set, indicate to the server this is a command session
-h, --help Prints help information
--insecure If set, will turn off encryption/authentication
--packet-trace If set, display incoming/outgoing DNSCAT2 packets
--prefer-server-name If set, prefer the server's session name
--random-delay If set, will select a random delay for each transmit between <min-delay> and <max-delay>
--retransmit-backoff If set, will exponentially backoff in delay from re-attempting a transmit
--retransmit-forever If set, will re-transmit forever until a server sends a valid response
-V, --version Prints version information
OPTIONS:
-e, --exec <exec>... Execute a process and attach stdin/stdout
--max-delay <max-delay> Set the maximum delay in milliseconds between packets [default: 1000]
--max-retransmits <max-retransmits> Set the max re-transmits attempted before assuming the server is dead and
aborting [default: 20]
--min-delay <min-delay> Set the minimum delay in milliseconds between packets [default: 0]
--query <query>... Set the query types for DNS requests (comma-delimited) [default: TXT MX
A] [possible values: TXT, MX, CNAME, A, AAAA]
--recv-queue-size <recv-queue-size> Set the receive chunk buffer size [default: 16]
--secret <secret> Set the shared secret used for encryption
--server <server> Set the DNS server address, which by default is auto-detected
--session-id <session-id> Set the session ID manually
--session-name <session-name> Set the session name manually
启动客户端,将DNSCAT2流连接到netcat
dnscat-client example.com. --server 127.0.0.1:53531 \
--insecure --session-name my-session --exec nc -l 8081
依赖关系
~13–23MB
~335K SLoC