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

[rapidleech] [UL] shafiles.me_member.php

By: bistro90 on Jul 3rd, 2012  |  syntax: PHP  |  size: 4.05 KB  |  hits: 17  |  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. <?
  2. ####### Account Info. ###########
  3. $shafiles_login = "";  //Set your user
  4. $shafiles_pass = "";  //Set your password
  5. ##############################
  6.  
  7. $not_done=true;
  8. $continue_up=false;
  9. if ($shafiles_login & $shafiles_pass){
  10.         $_REQUEST['sha_user'] = $shafiles_login;
  11.         $_REQUEST['sha_pass'] = $shafiles_pass;
  12.         $_REQUEST['action'] = "FORM";
  13.         echo "<b><center>Using your given Login Details</center></b>\n";
  14. }
  15. if ($_REQUEST['action'] == "FORM")
  16.     $continue_up=true;
  17. else{
  18. ?>
  19. <table border=0 style="width:270px;" cellspacing=0 align=center>
  20. <form method=post>
  21. <input type=hidden name=action value='FORM' />
  22. <tr><td nowrap>&nbsp;Login*<td>&nbsp;<input type='text' name='sha_user' value='' style="width:160px;" />&nbsp;</tr>
  23. <tr><td nowrap>&nbsp;Password*<td>&nbsp;<input type='password' name='sha_pass' value='' style="width:160px;" />&nbsp;</tr>
  24. <tr><td colspan=2 align=center><input type=submit value='Upload' /></tr>
  25. </table>
  26. </form>
  27. <?php
  28. }
  29.  
  30. if ($continue_up)
  31.         {
  32.                 $not_done=false;
  33. ?>
  34. <table width=600 align=center>
  35. </td></tr>
  36. <tr><td align=center>
  37. <div id=login width=100% align=center>Login to shafiles.me</div>
  38.         <?php          
  39.         if (!empty($_REQUEST['sha_user']) && !empty($_REQUEST['sha_pass'])){
  40.         $post["op"] = "login";
  41.         $post["redirect"] = "http://shafiles.me/";
  42.                 $post["login"] = trim($_REQUEST['sha_user']);
  43.         $post["password"] = trim($_REQUEST['sha_pass']);
  44.                 $page = geturl("www.shafiles.me", 80, "/", "http://shafiles.me/login.html", 0, $post, $_GET["proxy"]);
  45.                 is_page($page);
  46.                 is_present($page, "Incorrect Login or Password", "Incorrect Login or Password");
  47.                 $cookie = GetCookies($page);
  48.                 }else{
  49.                 html_error ('Error, user and/or password is empty, please go back and try again!');
  50.         }
  51.         ?>
  52. <script>document.getElementById('info').style.display='none';</script>
  53. <div id='info' width='100%' align='center'>Retrive upload ID</div>
  54. <?php
  55.                         $url = parse_url('http://shafiles.me/');
  56.                         $page = geturl($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), "http://shafiles.me/login.html", $cookie, 0, 0, $_GET["proxy"], $pauth);
  57.                         if(!preg_match('#action="([^"]+)"#', $page, $up)){
  58.                                 html_error('Cannot get url action upload.', 0);
  59.                         }
  60.                         if(!preg_match("#var[\r|\n|\s]+utype='([^']+)'#", $page, $utype)){
  61.                                 html_error('Cannot get user information.', 0);
  62.                         }
  63.                         if(!preg_match('#name="sess_id"[\r|\n|\s]+value="([^"]+)"#', $page, $sid)){
  64.                                 html_error('Cannot get session id.', 0);
  65.                         }
  66.                         $uid = uid();
  67.                         $url = parse_url($up[1].$uid.'&js_on=1&utype='.$utype[1].'&upload_type=file');
  68.                         $post["upload_type"] = "file";
  69.             $post["sess_id"] = $sid[1];
  70.             $post["srv_tmp_url"] = "http://95.211.186.167/~shafiles/tmp";
  71.                         $post["link_rcpt"] = '';
  72.                         $post["link_pass"] = '';
  73.                         $post["file_0_descr"] = '';
  74.                         $post['tos'] = '1';
  75.                         $post["submit_btn.x"] = '107';
  76.                         $post["submit_btn.y"] = '47';
  77.                         $post["submit_btn.y"] = 'Upload!';
  78.                         $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), "http://shafiles.me/", $cookie, $post, $lfile, $lname, "file_0");
  79. ?>
  80.  
  81. <script>document.getElementById('progressblock').style.display='none';</script>
  82. <?php
  83. is_page($upfiles);
  84.                         preg_match_all("#>([^><]+)<#", $upfiles, $dl);
  85.                         if($dl[1][1] != 'OK')
  86.                                 html_error('Error in upload');
  87.                         $post['fn'] = $dl[1][0];
  88.                         $post['st'] = 'OK';
  89.                         $post['op'] = 'upload_result';
  90.                         $page = geturl("www.shafiles.me", 80, "/", 0, $cookie, $post, 0, $_GET["proxy"]);
  91.                                 if(!empty($dl[1][0]))
  92.                                         $download_link = 'http://shafiles.me/'.$dl[1][0].'/'.$lname.'';
  93.                                 else
  94.                                         html_error ("Didn't find download link!");
  95.                                 if(preg_match("#killcode=([^=<]+)<#", $page, $del))
  96.                                         $delete_link = $download_link.'?killcode='.$del[1];
  97.                                 else
  98.                                         html_error ("Didn't find delete link!");
  99.         }
  100. function uid(){
  101.                                 $nu = "0123456789";
  102.                                 for($i=0; $i < 12; $i++){
  103.                                 $rand .= $nu{mt_rand() % strlen($nu)};
  104.                                 }
  105.                                 return $rand;
  106.         }
  107.  
  108. // [13-May-2012] Written by bistarito
  109. ?>