Advertisement
Guest User

yara example

a guest
Jul 28th, 2016
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. rule TEST_base64_text_and_header // match base64 encoded text *AND* header [ dont work ]
  2. {
  3. strings:
  4. $test_string = "robertcampbellphoto"
  5. $test_regex = /robertcampbellphoto/
  6. $header = "Received: from "
  7. condition:
  8. any of ($test_*) and $header
  9. }
  10.  
  11. rule TEST_base64_text // match base64 encoded text [ works fine ]
  12. {
  13. strings:
  14. $test_string = "robertcampbellphoto"
  15. $test_regex = /robertcampbellphoto/
  16. condition:
  17. any of ($test_*)
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement