I have a task of searching for opcode bytes in a PE file and checking whether a specified opcode byte sequence (constant and predefined) is present in the PE file. I have come across numerous examples online, but the solutions are mostly in C# or Python; however, my requirements are based in C language.

Please tell me how can I check and compare opcode byte values in a PE file by writing a simple program in C. Any help will be greatly appreciated.

Thanks.

有帮助吗?

解决方案

You may take a look at ROPGadget or at rp, both software contain code that do what you want (and more).

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top