-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7808b84
commit d6a8d83
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
INCLUDE (1) | ||
stdio.h | ||
Program (1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include <stdio.h> | ||
|
||
/* | ||
Please disable ASLR by sudo sysctl -w kernel.randomize_va_space=0 | ||
*/ | ||
|
||
void win() { // at 0x08048456 | ||
puts("Excellent, now let's go hack the world"); | ||
} | ||
void vuln() { | ||
char buf[16]; | ||
scanf("%s", buf); | ||
} | ||
int main() { | ||
puts("Welcome back to 2023 CS315, let's have some fun!"); | ||
vuln(); | ||
puts("Have a good day, Bye~"); | ||
return 0; | ||
} |