Skip to content

Instantly share code, notes, and snippets.

@hiddenillusion
Created September 25, 2017 23:19
Show Gist options
  • Select an option

  • Save hiddenillusion/6f319bae0e28e76ef1669e2c56af89d3 to your computer and use it in GitHub Desktop.

Select an option

Save hiddenillusion/6f319bae0e28e76ef1669e2c56af89d3 to your computer and use it in GitHub Desktop.
rule mutex_before_file
{
strings:
$sA = "bad.gcc" nocase
$sZ = "mutex" nocase
condition:
(@sZ[1] < @sA[1])
}
rule file_before_mutex
{
strings:
$sA = "bad.gcc" nocase
$sZ = "mutex" nocase
condition:
(@sA[1] < @sZ[1])
}
rule pdb_before_c2
{
strings:
$sA = "evil.localhost" nocase
$sZ = "c:\\work\\evil\\abcd.pdb"
condition:
(@sZ[1] < @sA[1])
}
rule pdb_after_c2
{
strings:
$sA = "evil.localhost" nocase
$sZ = "c:\\work\\evil\\abcd.pdb"
condition:
(@sA[1] < @sZ[1])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment