Skip to content

Commit

Permalink
unfinished
Browse files Browse the repository at this point in the history
  • Loading branch information
bash-c committed Apr 22, 2018
1 parent 35ab168 commit 70d6f38
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
Binary file added XDCTF2015_pwn200/bof
Binary file not shown.
19 changes: 19 additions & 0 deletions XDCTF2015_pwn200/bof.c
@@ -0,0 +1,19 @@
#include <unistd.h>
#include <stdio.h>
#include <string.h>

void vuln()
{
char buf[100];
setbuf(stdin, buf);
read(0, buf, 256);
}
int main()
{
char buf[100] = "Welcome to XDCTF2015~!\n";

setbuf(stdout, buf);
write(1, buf, strlen(buf));
vuln();
return 0;
}
Binary file added pwnable_critical_heap/critical_heap.tar.gz
Binary file not shown.

0 comments on commit 70d6f38

Please sign in to comment.