Pergunta

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.

Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top