1. 22 Feb, 2019 1 commit
  2. 17 Feb, 2019 1 commit
  3. 05 Dec, 2018 1 commit
  4. 25 Oct, 2018 1 commit
  5. 27 Aug, 2018 1 commit
  6. 03 Aug, 2018 3 commits
  7. 01 Aug, 2018 1 commit
  8. 30 Jul, 2018 2 commits
  9. 25 Jul, 2018 1 commit
  10. 31 Oct, 2017 2 commits
    • Callback on include (#67) · 01bc8977
      * stable on python 2
      
      * Stable on python 2 and 3 (fixed utf-8 and ascii encoding issues)
       * Still needs compatible yara submodule update once pull request accepted
      
      * * Fixed all encoding issues
      
      * Proper error handling
      
      * Updating yara submodule to reference yara patched with include callback support
      
      * Updating submodule's branch
      
      * Updating yara submodule
      
      * Updating yara submodule
      
      * Updating yara submodule
      
      * Updating yara submodule
      
      * Submodule update
      
      * * Fixing memory leaks
      * Fixing errors handling
      
      * making error messages order consistent between include_callback and default yara behaviour
      
      * Removing exception printing when callback fails
      
      * Minor re-styling.
      
      * Destroy compiler if PyCallable_Check(include_callback) fails.
      
      * References to Py_None should be increased.
      
      * Use Py_DECREF instead of Py_XDECREF for references that can't be NULL.
      
      * Minor re-styling.
      
      * Fix reference leak.
      
      After calling Py_INCREF(include_callback) some code paths were leading to a return without calling Py_DECREF. Calling Py_INCREF before yr_compiler_set_include_callback is not necessary, as this function doesn't yield control to Python, but it should be called before yr_compiler_add_XX.
      
      * Remove unnecessary calls to Py_INCREF/Py_DECREF.
      
      The references were already incremented in yara_compile.
      
      * Implement test case for include callbacks
      
      * Point yara submodule to official repository.
      Victor M. Alvarez authored
  11. 25 Oct, 2017 1 commit
  12. 17 Oct, 2017 1 commit
  13. 16 Oct, 2017 1 commit
  14. 07 Oct, 2017 1 commit
  15. 28 Aug, 2017 1 commit
  16. 30 Jun, 2017 1 commit
  17. 15 May, 2017 1 commit
  18. 16 Mar, 2017 1 commit
  19. 09 Jan, 2017 2 commits
  20. 20 Oct, 2016 2 commits
  21. 03 Aug, 2016 1 commit
  22. 30 Jun, 2016 1 commit
  23. 20 Jun, 2016 1 commit
  24. 15 Jun, 2016 1 commit
  25. 23 Feb, 2016 1 commit
  26. 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
  27. 26 Nov, 2015 2 commits
  28. 25 Sep, 2015 2 commits
  29. 15 Sep, 2015 1 commit
  30. 11 Sep, 2015 1 commit