Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- @author: Andrew Horsman
- @description: Grabs new content from Information Leak
- */
- if ($argc != 3) die("Not enough arguments");
- $user = $argv[1]; $pass = $argv[2];
- if (!($infoleak = fsockopen("informationleak.org", 80, $errno, $errstr)))
- die("Error #$errno: $errstr\n");
- $loginInfoLeak =
- "POST /ucp.php?mode-login HTTP/1.1\r\n" .
- "Host: informationleak.org\r\n" .
- "Content-Type: application/x-www-form-urlencoded\r\n" .
- "Content-Length: " . strlen(($cred = "username=" . urlencode($user) . "&password=" . urlencode($pass))) .
- "\r\n\r\n$cred";
- fwrite($infoleak, $loginInfoLeak);
- while (!feof($infoleak)) {
- if (preg_match("^phpbb3_okosr_sid=([[:xdigit:]]+)^", fgets($infoleak), $matches)) {
- $sidInfoLeak = $matches[0];
- break;
- }
- }
- $newPostsInfoLeak =
- "GET /search.php?search_id=newposts HTTP/1.1\r\n" .
- "Host: informationleak.org\r\n" .
- "Cookie: $sidInfoLeak\r\n";
- fwrite($infoleak, $newPostsInfoLeak);
- while (!feof($infoleak))
- echo fgets($infoleak);
- fclose($infoleak);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement