校验和函数的逆向工程
我想创建一个函数来计算一个数据块的校验和,就像商业程序一样。 我尝试过使用 gdb 或 REC 反编译器,但似乎我没有足够的技能来做到这一点。我可以使用什么工具来反编译这个函数? 我可以采取其他方法吗,例如尝试标准校验和函数来查看正在使用哪一个?
I want to create a function to calculate the checksum of one data block just as it does for a commercial program.
I have tried with gdb or REC decompiler, but it seems I have no skills enough to do it. What tools can I use to decompile this function?
Is there any other approach I can take, such as trying standard checksumming functions to see which one is being used?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
逆向工程需要基本的汇编知识(除非您对 Java、C# 或其他基于 VM 的语言进行逆向工程)和一般编程知识。考虑到这一点,您可以使用:
尽管我相信 Ida 的界面比 ollydbg 直观得多,但搜索哈希函数位置的过程对于所有选项都大致相同。不同之处在于一旦您拥有它,就会发生什么 - 使用 Hex-Rays 反编译器,您可以将其反编译为伪 C,并快速了解幕后发生的情况。没有它,您需要仔细研究汇编代码。
无论哪种方式,都要做好需要一些时间并有耐心的准备。
Reverse engineering requires basic knowledge of assembly (unless you're reverse engineering Java, C# or other VM-based language) and general programming knowledge. Having that in mind, you can use:
The process of searching for the hash function's location is going to be roughly the same for all options, though I believe Ida has much more intuitive interface than ollydbg. The difference is what happens once you have it - with Hex-Rays decompiler, you can decompile it to pseudo C and quickly have an overview of what happens under the hood. Without it, you need to carefully study assembly code.
Either way, be prepared for it to take some time and have patience.