Re: Using module_callback more than once

2018-03-13 Thread Wesley Shields
This should show you what is going on: >>> f = open('/bin/ls') >>> data = f.read() >>> f.close() >>> import yara >>> rules = yara.compile(source='import "pe" rule a { condition: false }') >>> def foo(data): ... global resources ... resources = data.get('number_of_resources') ... >>>

Using module_callback more than once

2018-03-13 Thread Matan Bachar
Hello everyone I am doing a yara-python project and Im using this technique to getting information about PE files: