FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
linux-exploit-development-tutorial/lab_code/stack.c at master · Sn0rt/linux-exploit-development-tutorial · GitHub
Sn0rt
/
linux-exploit-development-tutorial
Public
forked from
hardenedlinux/linux-exploit-development-tutorial
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
linux-exploit-development-tutorial
/
lab_code
/
stack.c
Copy path
More file actions
More file actions
Latest commit
History
History
History
16 lines (14 loc) · 319 Bytes
Breadcrumbs
linux-exploit-development-tutorial
/
lab_code
/
stack.c
Copy path
File metadata and controls
16 lines (14 loc) · 319 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
* gcc -fno-stack-protector -m32 -z execstack -o level1 stack.c
*/
#include
<stdio.h>
#include
<stdlib.h>
#include
<unistd.h>
void
vulnerable_function
() {
char
buf
[
128
];
read
(
STDIN_FILENO
,
buf
,
256
);
}
int
main
(
int
argc
,
char
*
*
argv
) {
vulnerable_function
();
write
(
STDOUT_FILENO
,
"Hello, World\n"
,
13
);
}
Back
|
FazBrowse Home
|
New Git URL