Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top