摘要: 第四题:进行输出打印1 #include <stdio.h>2 3 void main()4 {5 printf("*****************************\n");6 printf("\tVery good!\t\t\n");7 printf("*****************************\n");8 }第五题:输入a,b,c三个值,输出其中最大者。 1 #include <stdio.h> 2 3 void main() 4 { 5 int max(int x,int y); 阅读全文
posted @ 2012-05-03 21:40 r3call 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 子函数,就像小弟一样,帮我做各种各样的事 1 #include <stdio.h> 2 3 void main() 4 { 5 int max(int x,int y); //函数的声明 6 int a,b,c; 7 scanf("%d,%d",&a,&b); //获取输入 8 c=max(a,b); //调用子函数 9 printf("max= %d \n",c);10 }11 12 int max(int x,int y)13 {14 int z;15 if(x>y)16 {17 z... 阅读全文
posted @ 2012-05-03 21:25 r3call 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 求两个整数之和,也是一个很小的程序,但是其中的道理,还是很多的,我们要好好体会。相加的两个数从哪来,到哪去? 1 #include <stdio.h> 2 3 void main() 4 { 5 int a,b,sum; 6 a=123; 7 b=456; 8 sum=a+b; 9 printf("sum is %d \n",sum);10 }工程下载地址:http://files.cnblogs.com/tk091/rl002.zip同样的,我们我OD来查看对应的汇编代码:00401010 > 55 push ebp004... 阅读全文
posted @ 2012-05-03 20:49 r3call 阅读(691) 评论(0) 推荐(0) 编辑
摘要: Hello world是最简单的c语言程序,也是大多数程序员的开始。1 #include <stdio.h>2 3 void main()4 {5 printf("Hello World ! \n");6 }对应的工程下载:http://files.cnblogs.com/tk091/rl001.7z我们用OD对其进行反汇编查看(查看的是主函数): 1 00401010 |> \55 push ebp 2 00401011 |. 8BEC mov ebp,esp 3 00401013 |. 83EC 40 sub esp,0... 阅读全文
posted @ 2012-05-03 20:17 r3call 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 下载地址:http://files.cnblogs.com/tk091/crackme1.7z得到一个crackme,首先我们要对其进行分析,从而考虑如何下手,首先查壳,当然是无壳的了,然后运行程序,了解大致的情况。发现这是一个控制台程序,载入OD运行,看下OD的注释,发现有 1 0040139E |. 52 push edx ; /pWSAData 2 0040139F |. 68 02020000 push 0x202 ; |Requ... 阅读全文
posted @ 2012-05-02 19:58 r3call 阅读(396) 评论(1) 推荐(0) 编辑
摘要: 1 // 5nt.cpp : Defines the entry point for the console application. 2 // 3 4 #include "stdafx.h" 5 #include "stdio.h" 6 #include "windows.h" 7 8 int main(int argc, char* argv[]) 9 {10 char szFileName[]="C:\\Program Files\\*.*";11 WIN32_FIND_DATA findDate;12 HA 阅读全文
posted @ 2012-05-02 17:30 r3call 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 下载地址:http://files.cnblogs.com/tk091/pushbox.rar首先,这个程序没有任何可以输入注册码信息的地方,那么首先就可以考虑文件key形式。用c32打开,搜索File或者Reg,看看是不是注册表或者文件的形式验证。我在其中很快就搜索到:CreateFileA用OD载入,输入bp CreateFileAAlt+B打开断点窗口,果然有一个断点。shift+F9运行程序,按步骤找到“开始”按钮,按下程序被CreateFileA断下,alt+F9返回到程序领空。 1 0040140F |. 50 push eax ... 阅读全文
posted @ 2012-05-01 17:00 r3call 阅读(518) 评论(0) 推荐(0) 编辑
摘要: 1 00411A20 push ebp 2 00411A21 mov ebp,esp 3 00411A23 sub esp,0E8h 4 00411A29 push ebx 5 00411A2A push esi 6 00411A2B push edi 7 00411A2C lea edi,[ebp-0E8h] 8 00411A32 mov ecx,3Ah 9 00411A37 mov eax,0CCCCCCCCh10 00411A3C rep stos dword ptr[edi]11 00411A... 阅读全文
posted @ 2012-04-30 17:30 r3call 阅读(301) 评论(0) 推荐(0) 编辑
摘要: ... 1 #include "stdafx.h" 2 3 4 int _tmain(int argc, _TCHAR* argv[]) 5 { 6 004113B0 push ebp 7 004113B1 mov ebp,esp 8 004113B3 ... 阅读全文
posted @ 2012-04-30 17:12 r3call 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 1 int _tmain(int argc, _TCHAR* argv[]) 2 { 3 004113B0 push ebp 4 004113B1 mov ebp,esp 5 004113B3 sub esp,0CCh 6 004113B... 阅读全文
posted @ 2012-04-30 16:59 r3call 阅读(239) 评论(0) 推荐(0) 编辑