Skip to content

Commit dddbe7c

Browse files
committed
0day book
1 parent ede8aa1 commit dddbe7c

File tree

1,697 files changed

+354931
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,697 files changed

+354931
-0
lines changed
32 KB
Binary file not shown.
32 KB
Binary file not shown.
1.69 KB
Binary file not shown.
174 KB
Binary file not shown.
33 KB
Binary file not shown.

01基础知识/crack_me/crack_me.c

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*****************************************************************************
2+
To be the apostrophe which changed "Impossible" into "I'm possible"!
3+
4+
POC code of chapter 3.7 in book "Vulnerability Exploit and Analysis Technique"
5+
6+
file name : crack_me.c
7+
author : failwest
8+
date : 2006.9.20
9+
description : used as a simple demo to show how to crack a PE file
10+
Noticed : should be complied with VC6.0 and build into release version
11+
version : 1.0
12+
13+
14+
Only for educational purposes enjoy the fun from exploiting :)
15+
******************************************************************************/
16+
17+
#include <stdio.h>
18+
#define PASSWORD "1234567"
19+
int verify_password (char *password)
20+
{
21+
int authenticated;
22+
authenticated=strcmp(password,PASSWORD);
23+
return authenticated;
24+
}
25+
26+
main()
27+
{
28+
int valid_flag=0;
29+
char password[1024];
30+
while(1)
31+
{
32+
printf("please input password: ");
33+
scanf("%s",password);
34+
valid_flag = verify_password(password);
35+
if(valid_flag)
36+
{
37+
printf("incorrect password!\n\n");
38+
}
39+
else
40+
{
41+
printf("Congratulation! You have passed the verification!\n");
42+
break;
43+
}
44+
}
45+
}

01基础知识/crack_me/crack_me.dsp

Lines changed: 88 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Microsoft Developer Studio Workspace File, Format Version 6.00
2+
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3+
4+
###############################################################################
5+
6+
Project: "crack_me"=".\crack_me.dsp" - Package Owner=<4>
7+
8+
Package=<5>
9+
{{{
10+
}}}
11+
12+
Package=<4>
13+
{{{
14+
}}}
15+
16+
###############################################################################
17+
18+
Global:
19+
20+
Package=<5>
21+
{{{
22+
}}}
23+
24+
Package=<3>
25+
{{{
26+
}}}
27+
28+
###############################################################################
29+
32 KB
Binary file not shown.
41 KB
Binary file not shown.

0 commit comments

Comments
 (0)