Skip to content

Commit

Permalink
typo gimme3bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
gio-del authored Jan 2, 2024
1 parent 5a8d507 commit 1179773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion writeups/shellcode/gimme3bytes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pop rdx
syscall
```

- RAX: already set to 0x0a (syscall number for `read`)
- RAX: already set to 0x0 (syscall number for `read`)
- RDI: already set to 0x0 (stdin)
- RSI: already set to the buffer address
- RDX: set using `pop rdx`. Why so? Because at that point the stack contains a large number that can be used as a buffer size
Expand Down

0 comments on commit 1179773

Please sign in to comment.