dnscat2_Hacktool
Description
Detects dnscat2 - from files dnscat, dnscat2.exe
Query · yara
strings:
$s1 = "--exec -e <process> Execute the given process and link it to the stream." fullword ascii
$s2 = "Sawlog" fullword ascii
$s3 = "COMMAND_EXEC [request] :: request_id: 0x%04x :: name: %s :: command: %s" fullword ascii
$s4 = "COMMAND_SHELL [request] :: request_id: 0x%04x :: name: %s" fullword ascii
$s5 = "[Tunnel %d] connection to %s:%d closed by the server!" fullword ascii
condition:
((uint16(0) == 0x457f or uint16(0) == 0x5a4d) and filesize < 400KB and (2 of ($s*))) or (all of them)