capstone

How can I obtain a PE file's instructions using Python?

梦想与她 提交于 2019-12-24 13:14:06
问题 So I'm trying to write a basic disassembler for a school project using Python. I'm using the pydasm and capstone libraries. What I don't understand is how I can actually access the assembly instructions of a program using Python. These libraries allow me to disassemble instructions, but I can't figure out how to access a program's instructions in Python. Could anyone give me some direction? Thanks. 回答1: This depends on what OS you're using. You have some other questions about Linux, so I'm