Skip to content

Commit 22b21d4

Browse files
committed
examples/aslr-nx-pie-canary: make the binary more challenging
Signed-off-by: Marco Wang <m.aesophor@gmail.com>
1 parent 2cd2865 commit 22b21d4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
-48 Bytes
Binary file not shown.

examples/aslr-nx-pie-canary/main.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ int main() {
66
setvbuf(stdout, NULL, _IONBF, 0);
77

88
char buf[0x18];
9-
109
printf("what's your name: ");
1110
read(0, buf, 0x80);
1211

13-
printf("%s\n", buf);
12+
printf("Hello, %s. Your comment: ", buf);
1413
read(0, buf, 0x80);
1514

16-
printf("%s\n", buf);
15+
printf("Thanks! We've received it: %s\n", buf);
1716
read(0, buf, 0x30);
1817
}

0 commit comments

Comments
 (0)