Oto kod:
<?php // better disable error reporting altogether in production /** * The premium account hash (so no username/password is actually revealed) * * How to get: * * 1. Using a premium account, logon to megaupload * 2. When logged-in, view your cookies for the domain 'megaupload.com' * * - or - * * While still in any MU page, type this onto your browser's address bar: * * java script:alert(document.cookie) * * The 32-character string will be the account hash ;-) * * e.g. 5f393381926eb922d4e2a91fb3d9bf6c */ $user = '5f393381926eb922d4e2a91fb3d9bf6c'; $result = ''; // will hold either the premium link or some error on return if ($_SERVER['REQUEST_METHOD'] == 'POST') { 'Firefox/2.0.0.5', 'Firefox/2.0.0.6', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0)', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)', 'Opera/9.21 (Windows NT 5.1; U; en)', 'Opera/9.22 (Windows NT 5.1; U; en)' ); // pick a random user-agent $ua = $uas[$ua_k]; $ile--; for ($i = 0; $i <= $ile; $i++) { //echo $i . " " . $links[$i] . "<br />"; } for ($i = 0; $i <= $ile; $i++) { $link = $links[$i]; // verify link in the format: http://www.megaupload.com/?d=XXXXXXXX { $result = "Invalid MU link."; } else { // make our actual request (extra headers to emulate a web browser) $h = ''; $h .= "GET /?$query HTTP/1.0r\n"; $h .= "User-Agent: $uar\n"; $h .= "Host: $hostr\n"; $h .= "Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1r\n"; $h .= "Accept-Language: en-US,en;q=0.9r\n"; $h .= "Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1r\n"; $h .= "Cookie: user=$userr\n"; $h .= "Cookie2: $Version=1r\n"; $h .= "Connection: Keep-Aliver\n"; $h .= "Pragma: no-cacher\n"; $h .= "Cache-Control: no-cacher\nr\n"; // try to connect to $host { // whups, failed :-( $result = "I couldn't connect to $host!"; } else { // pass the request $response = ''; // fetch result { } // cleanup // works as of 20070907: preg_match("|<a href=\"([^\"]+)' + ([a-z]) + ([a-z]) + '([^\"]+)\" class=\"downloadhtml\"|i", $response, $link); // and bam, our link :-) } } $link_prem[$i] = $result; } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" <html xmlns="http://www.w3.org/1999/xhtml" lang="en-ph" xml:lang="en-ph"> <head> <title>Megaupload Multiple Premium Link Generator</title> <meta http-equiv="Content-Type" content="text/html; utf-8" /> <meta name="copyright" content="reeky" /> <style type="text/css"> /*<![CDATA[*/ body,input{font: small Verdana, Geneva, Arial, Helvetica, sans-serif;} a{color:#00C;} h2{margin-bottom:0;} /*]]>*/ </style> </head> <body> <h2>Megaupload Multiple Premium Link Generator</h2> <form name="a" action="" method="post" id="a"> Megaupload Link: (e.g. http://www.megaupload.com/?d=XXXXXXXX)<br /> You can paste unlimited links! <br /> <input type="hidden" name="wyslany" /> <input type="submit" value="Go!" /> </form> <div id="premium_link"> <?php for ($i = 0; $i <= $ile; $i++) { } } ?> </div> </body> </html>
Kontakt:
GG: 5675055
miki3475[at]gmail.com