Don't like ads? PRO users don't see any ads ;-)

[rapidleech] [UL] ufile.eu_member.php

By: bistro90 on Jul 3rd, 2012  |  syntax: PHP  |  size: 4.47 KB  |  hits: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. ####### Account Info. ###########
  3. $ufile_uesr = "";  //Set your user
  4. $ufile_pass = "";  //Set your password
  5. ##############################
  6.  
  7. $not_done = true;
  8. $continue_up = false;
  9.  
  10. if ($ufile_user && $ufile_pass) {
  11.     $_REQUEST['up_login'] = $ufile_user;
  12.     $_REQUEST['up_pass'] = $ufile_pass;
  13.     $_REQUEST['action'] = "FORM";
  14.     echo "<b><center>Using your given Login Details</center></b>\n";
  15. }
  16. if ($_REQUEST['action'] == "FORM")
  17.     $continue_up = true;
  18. else {
  19.  
  20. ?>
  21.     <table border='0' style="width:270px;" cellspacing='0' align='center'>
  22.         <form method='post'>
  23.             <input type='hidden' name='action' value='FORM' />
  24.             <tr><td nowrap>&nbsp;User<td>&nbsp;<input type='text' name='up_login' value='' style='width:195px;' />&nbsp;</tr>
  25.             <tr><td nowrap>&nbsp;Password<td>&nbsp;<input type='password' name='up_pass' value='' style='width:195px;' />&nbsp;</tr>
  26.             <tr><td colspan='2' align='center'><input type='submit' value='Upload' /></tr>
  27.     </table>
  28.     </form>
  29.  
  30. <?php
  31. }
  32.  
  33. if ($continue_up) {
  34.     $not_done = false;
  35. ?>
  36.     <table width='600' align='center'>
  37.     </td></tr>
  38.     <tr><td align='center'>
  39.             <div id='login' width='100%' align='center'>Login to ufile.eu</div>
  40.         <?php
  41.         if (!empty($_REQUEST['up_login']) && !empty($_REQUEST['up_pass'])) {
  42.             $post = array();
  43.             $post['op'] = "login";
  44.             $post['redirect'] = "";
  45.             $post['login'] = $_REQUEST['up_login'];
  46.             $post['password'] = $_REQUEST['up_pass'];
  47.             $post['x'] = rand(0, 33);
  48.             $post['y'] = rand(0, 6);
  49.             $Url = parse_url("http://ufile.eu/");
  50.             $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), "http://ufile.eu/login.html", array("popundr"=>"1"), $post, 0, $_GET["proxy"], $pauth);
  51.             is_page($page);
  52.             $cookie = GetCookies($page);
  53.             is_notpresent($cookie, "xfss=", "Login Failed");
  54.         } else {
  55.             echo "<b><center>Login not found or empty, using non member upload.</center></b>\n";
  56.         }
  57.         ?>
  58.         <script type='text/javascript'>document.getElementById('login').style.display='none';</script>
  59.         <div id='info' width='100%' align='center'>Retrive upload ID</div>
  60.         <?php
  61.        
  62.         $Url = parse_url("http://ufile.eu/");
  63.         $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), "http://ufile.eu/?op=my_files", $cookie, 0, 0, $_GET["proxy"], $pauth);
  64.         is_page($page);
  65.         unset($post);
  66.         $post['upload_type'] = "file";
  67.         $post['sess_id'] = cut_str($page, 'sess_id" value="', '"');
  68.         $post['srv_tmp_url'] = cut_str($page, 'srv_tmp_url" value="', '"');
  69.         $uid = "";
  70.         for ($i = 0; $i < 12; $i++) {
  71.             $uid = $uid . rand(0, 9);
  72.         }
  73.         $uploc = cut_str($page, 'multipart/form-data" action="', '"') . $uid . '&js_on=1&utype=reg&upload_type=file';
  74.         $url = parse_url($uploc);
  75.         $post['link_rcpt']="";
  76.         $post['link_pass']=$upload_acc['ufile_eu']['linkpass'];
  77.         $post['tos']="1";
  78.         $post['x']=rand(0,61);
  79.         $post['y']=rand(0,17);
  80.         ?>
  81.         <script type='text/javascript'>document.getElementById('info').style.display='none';</script>
  82.         <?php
  83.         $upagent = "Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20100101 Firefox/6.0";
  84.         $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 0, $cookie, $post, $lfile, $lname, "file_0", "", $_GET["proxy"], $pauth, $upagent);
  85.         ?>
  86.         <script type='text/javascript'>document.getElementById('progressblock').style.display='none';</script>
  87.         <?php
  88.         is_page($upfiles);
  89.         $locat = cut_str($upfiles, 'rea name=\'fn\'>', '</textarea>');
  90.         unset($post);
  91.         $gpost['fn'] = $locat;
  92.         $gpost['st'] = "OK";
  93.         $gpost['op'] = "upload_result";
  94.         $Url = parse_url("http://ufile.eu/");
  95.         $page = geturl($Url["host"], defport($Url), $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), $uploc, $cookie, $gpost, 0, $_GET["proxy"], $pauth);
  96.         $download_link = "http://ufile.eu/".$locat;
  97.         preg_match('#http://ufile.eu/'.$locat.'\?killcode[^<"]+#', $page, $tmp);
  98.         $delete_link = $tmp[0];
  99.                 }
  100.  
  101. // [03-July-2012] Written by bistarito
  102. ?>