Windows_Hacktool_SharpShares_88cdcd52
Description
Windows.Hacktool.SharpShares
Query · yara
strings:
$guid = "BCBC884D-2D47-4138-B68F-7D425C9291F9" ascii wide nocase
$print_str0 = "all enabled computers with \"primary\" group \"Domain Computers\"" ascii wide
$print_str1 = "all enabled Domain Controllers (not read-only DCs)" ascii wide
$print_str2 = "all enabled servers excluding Domain Controllers or read-only DCs" ascii wide
$str0 = "(&(objectCategory=computer)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))" ascii wide
$str1 = "(&(objectCategory=computer)(!(userAccountControl:1.2.840.113556.1.4.803:=2))(userAccountControl:1.2.840.113556.1.4.803:=8192))" ascii wide
$str2 = "(&(objectCategory=computer)(!(userAccountControl:1.2.840.113556.1.4.803:=2))(!(userAccountControl:1.2.840.113556.1.4.803:=8192))(!(userAccountControl:1.2.840.113556.1.4.803:=67100867)))" ascii wide
$str3 = "(&(objectCategory=computer)(!(userAccountControl:1.2.840.113556.1.4.803:=2))(operatingSystem=*server*)(!(userAccountControl:1.2.840.113556.1.4.803:=8192))(!(userAccountControl:1.2.840.113556.1.4.803:=67100867)))" ascii wide
$str4 = "servers-exclude-dc" ascii wide
$str5 = "all enabled servers" ascii wide
$str6 = "[w] \\\\{0}\\{1}" ascii wide
$str7 = "[-] \\\\{0}\\{1}" ascii wide
condition:
$guid or all of ($print_str*) or 4 of ($str*)