- 22 Feb, 2019 1 commit
-
-
Victor M. Alvarez authored
-
- 17 Feb, 2019 1 commit
-
-
Caleb Fenton authored
-
- 05 Dec, 2018 1 commit
-
- 25 Oct, 2018 1 commit
-
-
Jimmy authored
-
- 27 Aug, 2018 1 commit
-
-
Closes issue #79.
Victor M. Alvarez authored
-
- 03 Aug, 2018 3 commits
-
-
If Yara return error for `rules.match(data='string')` the Python wrapper module crashes process with a segmentation fault. Handle properly errors from 'data' and from 'pid'.
barahilia authored -
Victor M. Alvarez authored
-
This Python function takes two optional kwargs: stack_size, max_strings_per_rule. These each are unsigned int types and will be used to update the YR_CONFIG_STACK_SIZE and YR_CONFIG_MAX_STRINGS_PER_RULE configuration options in the matching engine, respectively. We found a case preventing moving from cmdline yara to python-yara due to the lack of control over these options in the Python module. This fixes that. I suppose, at some point, it might be worthwhile to also implement a get_config entrypoint as well.
Coleman Kane authored
-
- 01 Aug, 2018 1 commit
-
-
Fix regression in "includes" argument in yara.compile. With includes=True includes were being disabled instead of enabled. Closes #78.
Victor M. Alvarez authored
-
- 30 Jul, 2018 2 commits
-
-
Bartholomew De la Villardière authored
-
* Fix regression in which_callbacks. * Add test to detect regression fixed in 367290a586ef7b7f83e5db265bfe39b57847473e. * Fix typo in previous commit. * Remove redundant conditional.
Wesley Shields authored
-
- 25 Jul, 2018 1 commit
-
-
Victor M. Alvarez authored
-
- 31 Oct, 2017 2 commits
-
-
Victor M. Alvarez authored
-
* 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
-
- 25 Oct, 2017 1 commit
-
-
Add a 'which_callbacks' keyword to match(), which limits when the Python callback will be called.
Wesley Shields authored
-
- 17 Oct, 2017 1 commit
-
-
Revert "Add a 'which_callback' keyword to match(), which limits when the python callback will be called." This reverts commit e2cb4e39.
Victor M. Alvarez authored
-
- 16 Oct, 2017 1 commit
-
-
Wesley Shields authored
-
- 07 Oct, 2017 1 commit
-
-
Victor M. Alvarez authored
-
- 28 Aug, 2017 1 commit
-
-
When iterating over a Rules object, the iteration would work for a single pass before throwing a StopIteration exception. This slightly changes the iteration logic to reset to the iteration list head after a full iteration has been completed.
Alexander Bertsch authored
-
- 30 Jun, 2017 1 commit
-
-
Victor Manuel Alvarez authored
-
- 15 May, 2017 1 commit
-
-
plusvic authored
-
- 16 Mar, 2017 1 commit
-
-
plusvic authored
-
- 09 Jan, 2017 2 commits
- 20 Oct, 2016 2 commits
-
-
When rules are passed as strings, the line number would not be shown when input as a string. The information is available however.
Mathijs van de Nes authored -
If it is not a file like object, the function would return -1. This would eventually lead to a segmention fault later on.
Mathijs van de Nes authored
-
- 03 Aug, 2016 1 commit
-
-
Wesley Shields authored
-
- 30 Jun, 2016 1 commit
-
-
The "scan" method was returning a error when the "externals" dictionary has keys that weren't previously passed to "compile". Ignore those extra keys to avoid regression errors.
plusvic authored
-
- 20 Jun, 2016 1 commit
-
-
Show appropriate error message when an external variable is redefined with a different type. See issue #12.
plusvic authored
-
- 15 Jun, 2016 1 commit
-
-
plusvic authored
-
- 23 Feb, 2016 1 commit
-
-
plusvic authored
-
- 02 Jan, 2016 1 commit
-
-
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
-
- 26 Nov, 2015 2 commits
-
-
Victor M. Alvarez authored
-
yara_callback was invoking Python's code without acquiring the global interpreter lock.
Victor M. Alvarez authored
-
- 25 Sep, 2015 2 commits
-
-
Victor M. Alvarez authored
-
Starting with Python 3.2 hash functions should return Py_hash_t instead of long.
Victor M. Alvarez authored
-
- 15 Sep, 2015 1 commit
-
-
Victor M. Alvarez authored
-
- 11 Sep, 2015 1 commit
-
-
Victor M. Alvarez authored
-