Skip to content

Commit

Permalink
style(pwn/ret2text32): 修改程序输出信息
Browse files Browse the repository at this point in the history
  • Loading branch information
13m0n4de committed Oct 18, 2024
1 parent 52e8cda commit 93e0242
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions challenges/pwn/ret2text32/build/src/ret2text32.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include <stdio.h>
#include <stdlib.h>
#include <time.h>

void init() {
setvbuf(stdin, NULL, _IONBF, 0);
Expand All @@ -24,9 +23,10 @@ void backdoor() {

void vuln() {
char buf[100];
puts("There is something amazing here, do you know anything?");
printf("Program: Hey there! Think you can hack me?\n");
printf("You: ");
gets(buf);
puts("Maybe I will tell you next time !");
printf("Program: Hmm, I feel a bit strange...\n");
}

int main() {
Expand Down

0 comments on commit 93e0242

Please sign in to comment.