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
# 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) |