Вопрос

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