matonis / yara_tools

Create an entire YARA rule via Python? Whhhhhhaatttt?
MIT License
71 stars 8 forks source link

adding hex string to rule #18

Open bufu1003 opened 5 years ago

bufu1003 commented 5 years ago

Is there a workaround at the moment for adding a string of bytes to a rule in Yara's format? Looked around in documentation/examples and I haven't found anything.

Thank you for help!

matonis commented 4 years ago

I'm sorry for the delay a bit of a hectic summer. I believe _rule.add_binary_asstring should work for you. Let me know if it doesn't.

rule.add_binary_as_string(data="4d5a9000??000000??000000ffff0000")