1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
| <?php
####### Account Info. ###########
$mega_login = ""; // login
$mega_pass = ""; // password
##############################
$not_done=true;
$continue_up=false;
if ($mega_login && $mega_pass){
$_REQUEST['my_login'] = $mega_login;
$_REQUEST['my_pass'] = $mega_pass;
$_REQUEST['action'] = "FORM";
echo "<b><center>Use Default login/pass.</center></b>\n";
}
if ($_REQUEST['action'] == "FORM")
$continue_up=true;
else{
?>
<table border=0 style="width:270px;" cellspacing=0 align=center>
<form method=post>
<input type=hidden name=action value='FORM' />
<tr><td nowrap> User*<td> <input type=text name=my_login value='' style="width:160px;" /> </tr>
<tr><td nowrap> Password*<td> <input type=password name=my_pass value='' style="width:160px;" /> </tr>
<tr><td colspan=2 align=center><input type=submit value='Upload' /></tr>
<tr><td colspan=2 align=center><small>*You can set it as default in <b><?php echo $page_upload["megaupload.com"]; ?></b></small></tr>
</table>
</form>
<?php
}
if ($continue_up)
{
$not_done=false;
?>
<table width=600 align=center>
</td></tr>
<tr><td align=center>
<div id=login width=100% align=center>Login to Megaupload.com</div>
<?php
$post = array();
$post['login'] = '1';
$post['username'] = trim($_REQUEST['my_login']);
$post['password'] = trim($_REQUEST['my_pass']);
$page = geturl("megaupload.com", 80, "/?c=account", 0, 0, $post, 0, $_GET["proxy"], $pauth);
is_page($page);
is_present($page, 'Username and password do not match. Please try again!', 'Error logging in - are your logins correct!');
$cookie = GetCookies($page);
$page = geturl("megaupload.com", 80, "/", "http://www.megaupload.com/", $cookie, 0, 0, "");
is_page($page);
echo $ID;
echo $s;
?>
<script>document.getElementById('login').style.display='none';</script>
<div id=info width=100% align=center>Retrive upload ID</div>
<?php
$server = cut_str($page, 'flashvars.server = "','";');
$s = rndNum(6);
$rand = rndNum(21);
$ID= '0'.time().$rand;
$upload_form = $server."upload_done.php?UPLOAD_IDENTIFIER=$ID&user=undefined&s=$s";
$url = parse_url($upload_form);
?>
<?php
$fpost = array();
$fpost["Filename"] = $lname;
$fpost["message"] = 'LeechViet';
$fpost["trafficurl"] = 'undefined';
$fpost["user"] = 'undefined';
$fpost["hotlink"] = '0';
$fpost["Upload"] = 'Submit Query';
$upfiles = upfile($url["host"],$url["port"] ? $url["port"] : 80, $url["path"].($url["query"] ? "?".$url["query"] : ""), "http://www.megaupload.com/",$cookie, $fpost, $lfile, $lname, "Filedata");
?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php
is_page($upfiles);
insert_timer( 5, "Wait for Redirect Download Link.","",true );
preg_match('/downloadurl *= *\'(.*?)\'/i', $upfiles, $dllink);
$download_link = $dllink[1];
}
function rndNum($lg){
$str="0123456789";
for ($i=1;$i<=$lg;$i++){
$st=rand(1,9);
$pnt.=substr($str,$st,1);}
return $pnt;
}
//VinhNhaTrang_01.12.2010
?> |
Partager