Sorry copy/paste error:
rules = yara.compile(source='rule dummy { strings: $filter1 = "%s" wide
ascii nocase '
'condition: $filter1 }' % "test")
for i in psutil.process_iter():
print(i)
if i.pid and i.pid != getpid():
try:
res = rules.match(pid=i.pid)
print(res)
for hit in res:
print(hit)
except Exception as e:
print(e)
--
You received this message because you are subscribed to the Google Groups
"YARA" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.