1. 09 Jan, 2017 1 commit
  2. 20 Oct, 2016 4 commits
  3. 03 Aug, 2016 3 commits
  4. 28 Jul, 2016 1 commit
  5. 25 Jul, 2016 4 commits
  6. 02 Jul, 2016 1 commit
  7. 30 Jun, 2016 2 commits
  8. 29 Jun, 2016 2 commits
  9. 20 Jun, 2016 2 commits
  10. 15 Jun, 2016 4 commits
  11. 23 Feb, 2016 10 commits
  12. 31 Jan, 2016 2 commits
  13. 22 Jan, 2016 1 commit
  14. 02 Jan, 2016 1 commit
    • Implement CALLBACK_MSG_MODULE_IMPORTED. · 4b059d22
      Implement a callback to handle module data. It will be given a dictionary
      which contains all the information stored in the module that is fit for
      consumption. Things like functions are left out.
      
      You can now do things like this:
      
      ```
      import yara
      import json
      from pprint import pprint
      
      def modules_callback(d):
          try:
              pprint(d)
              # This will not work if you have non-ASCII in your strings.
              #print json.dumps(d, indent=4)
          except Exception as e:
              print "Exception: %s" % e
          return yara.CALLBACK_CONTINUE
      
      rules = yara.compile(source='import "pe" rule always_false { condition: false }')
      with open('foo.exe') as f:
          rules.match(data=f.read(), modules_callback=modules_callback)
      ```
      Wesley Shields authored
  15. 26 Nov, 2015 2 commits