TransWikia.com

ida: a better way of printing ida script output on console

Reverse Engineering Asked on December 9, 2020

I just started exploring ida. I have a simple IDAPython script.

import sys
import idc
import idautils
# wait for auto-analysis to complete
idc.auto_wait()
for ea in idautils.Functions():
    print(idc.get_func_name(ea))
idc.qexit(0)

I want to print output on screen for debugging purpose. I read ida online page about command line switches. But I couldn’t find any better way to direct print messages on console.

I found a rather hacky way:

../idapro-7.5/ida64 -c -A -S"fetchinfo_ida.py" -L"log.out" a.out;cat log.out;rm -f log.out

Is there any better way to this?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP