Skip to content

Export of disassembly to txt/html file #2626

Answered by lwerdna
EdwardGeonity asked this question in Analysis
Discussion options

You must be logged in to vote

This is an upcoming UI feature. Until then, see if the attached script is useful. It dumps all registers and IL forms.

import sys, time
import binaryninja
from binaryninja import lineardisassembly, function
from binaryninja.enums import InstructionTextTokenType, DisassemblyOption

def print_divider(text):
    print()
    print('--------------------------------------------------------------------------------')
    print(text)
    print('--------------------------------------------------------------------------------')

def print_cursor(cursor):
    i = 0
    while(True):
        lines = bv.get_next_linear_disassembly_lines(cursor)
        if len(lines) == 0:
            break
        for l in

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@lwerdna
Comment options

@lwerdna
Comment options

Answer selected by fuzyll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants