Skip to content

Commit

Permalink
✏️ [Pwn]babyrop 修改题目源码并删除附件
Browse files Browse the repository at this point in the history
  • Loading branch information
pn1fg committed Dec 8, 2023
1 parent e14fe06 commit b45a750
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Binary file removed challenges/pwn/babyrop/attachments/babyrop
Binary file not shown.
7 changes: 6 additions & 1 deletion challenges/pwn/babyrop/build/babyrop.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,15 @@ void banner() {
"---------------------------------------------------");
}

void gadget() {
asm("pop %rdx; ret");
}

void vuln() {
char buf[100];
char buff[30] = "Do you know buffer overflow?\n";

puts("Do you know buffer overflow?");
write(1,buff,0x1e);
read(0,buf,0x200);
}

Expand Down

0 comments on commit b45a750

Please sign in to comment.