This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "libyara/include/yara.h" | |
int main() | |
{ | |
YR_RULES* rules; | |
YR_RULE* rule; | |
YR_STRING* string; | |
YR_META* meta; | |
const char* tag; | |
int result; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# assuming f is a Function | |
insts = [ inst for inst in f.low_level_il.basic_blocks[0] if inst.address >= 0x1013a0b and inst.address <= 0x1013c42 ] | |
for inst in insts: | |
f.set_int_display_type(inst.address, value=inst.src.value.value, operand=1, | |
display_type=enums.IntegerDisplayType.CharacterConstantDisplayType) |