码迷,mamicode.com
首页 > 其他好文 > 详细

OD~~helloworld

时间:2017-03-23 00:58:54      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:turn   信息   sorry   printf   log   return   改变   call   ==   

要爆破的C程序源码:

 1 #include <stdio.h>
 2 int main()
 3 {
 4     int x;
 5     scanf("%d",&x);
 6     if(x==876)
 7         printf("helloworld!\n");
 8     else
 9         printf("sorry,you enter password error!\n");
10     return 0;
11 }

 

简单的第一次尝试,找到Call命令后下端点,F7进入,输入x值,一路F8 看到输出性提示(天晚了就不上图了)

1.可以修改标志信息,改变跳转。 2.修改比较的值使其跳转。

从而爆破该程序。

 

OD~~helloworld

标签:turn   信息   sorry   printf   log   return   改变   call   ==   

原文地址:http://www.cnblogs.com/A--Q/p/6602497.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!