Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DNSQueryA ¶
func DNSQueryA()
DNSQuery sends a request for A record types. This can be used as a test weather arbitrary DNS severs are allowed
func DNSQueryTXT ¶
func DNSQueryTXT()
DNSQueryTXT sends a request for TXT record types. This can be used to get commands from a c&c server.
func ICMPRecvPingv4 ¶
func ICMPRecvPingv4() error
ICMPRecvPingv4 listens for IPv4 ICMP pings and reads the data field.
func ICMPSendPingv4 ¶
ICMPSendPingv4 sends a IPv4 ping with arbitrary data in the data field. Ping is of type echo. We don't care for the answer here.
func ViaResolver ¶
ViaResolver creates a local resolver where we can set the DNS server, i.e. the c&c server. It sends the msg as a A record request to the set DNS server. The message is the domain we fake to resolve. Easy test but might be interessting in some cases.