Skip to content

Instantly share code, notes, and snippets.

View jhftss's full-sized avatar

Mickey Jin jhftss

View GitHub Profile
@jhftss
jhftss / bindiff_symbolization.py
Last active March 16, 2022 18:17
symbolization using the bindiff results
# From the "Matched Functions" window of the bindiff plugin:
# right click, copy all, and then paste to a bindiff_result.txt
with open('/path/to/bindiff_result.txt', 'r') as file:
file.readline() # skip header line
for line in file.readlines():
sp = line.split('\t')
if len(sp) == 18:
similarity = float(sp[0])
confidence = float(sp[1])
addr = int(sp[3], 16)