Witam, kiedyś posiadałem skrypt Megaupload.com Premium Link Generator, gdzie wpisywaliśmy w kodzie własne konto premium, a następnie po wpisaniu linków na stronie wyświetlały się nam bezpośrednie odnośniki tak jakbyśmy weszli na konto premium i kliknęli 'Kopiuj adres odnośnika'. Za przerobienie skryptu płacę 10-15zł lub konto Premium na co najmniej 90 dni.
Oto kod:
<?php
header('Content-Type: text/html; charset=utf-8'); header('Cache-Control: no-cache, must-revalidate, proxy-revalidate');
// 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];
$link = trim($_POST['link']);
$ile--;
for ($i = 0; $i <= $ile; $i++) {
$links[$i] = trim($links[$i]); //echo $i . " " . $links[$i] . "<br />";
}
for ($i = 0; $i <= $ile; $i++) {
$link = $links[$i];
if ( !preg_match("|http://(w+.)?megaupload.com/?d=[[:alnum:]]{8}|Ui", $link, $matches ) ) {
$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
if ( !$fp = fsockopen($host, 80
, $errno, $errstr, 30) ) {
// whups, failed :-(
$result = "I couldn't connect to $host!";
}
else
{
// pass the request
$response = '';
// fetch result
{
$response .= fread($fp, 1024
); }
// cleanup
// works as of 20070907:
preg_match("|String.fromCharCode(Math.abs(([^)]+)));|i", $response, $abs); preg_match("|'(.)'s+sString.fromCharCode(Math.sqrt(([^)]+)));|i", $response, $sqrt); preg_match("|<a href=\"([^\"]+)' + ([a-z]) + ([a-z]) + '([^\"]+)\" class=\"downloadhtml\"|i", $response, $link);
// and bam, our link :-)
$result = $link[1
] . $sqrt[1
] . chr
(sqrt
($sqrt[2
])) . chr
(abs($abs[1
])) .$link[4
]; }
}
$link_prem[$i] = $result;
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<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">
You can paste unlimited links!
<br />
<textarea name="link" cols="60" rows="20">
<?php print !empty($_POST['link']) ?
$_POST['link'] : ''; ?></textarea><br>
<input type="hidden" name="wyslany" />
<input type="submit" value="Go!" />
</form>
<div id="premium_link">
<?php
if (isset($_POST['wyslany'])) { for ($i = 0; $i <= $ile; $i++) {
echo $link_prem[$i] . "<br />\n"; }
}
?>
</div>
</body>
</html>
Kontakt:
GG: 5675055
miki3475[at]gmail.com