Skip to content

Instantly share code, notes, and snippets.

#include "libyara/include/yara.h"
int main()
{
YR_RULES* rules;
YR_RULE* rule;
YR_STRING* string;
YR_META* meta;
const char* tag;
int result;
@0xbc
0xbc / set_display_type.py
Created September 7, 2017 02:13
Changing the display type of integer operands in BinaryNinja
# 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)