Skip to content
Advertisement

Convert instructions to op code bytes in python script for IDA Pro

I need to convert into op code bytes the instructions that I have disassembled but I can’t find a function that lets me do it, I’ve tried idc.get_bytes but it doesn’t seem to work.

This is my python script:

JavaScript

I’m using this script with the batch mode of IDA Pro 7.7sp1, can you suggest me a method to do it? Thank you in advance.

Advertisement

Answer

So, something like this?

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement