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

[rapidleech] [UL] igetfile.com_member.php

By: bistro90 on Jul 3rd, 2012  |  syntax: PHP  |  size: 4.68 KB  |  hits: 333  |  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. $igetfile_login = ""; //Set your login
  4. $igetfile_pass = ""; //Set your password
  5. ##############################
  6.  
  7. $not_done=true;
  8. $continue_up=false;
  9. if ($igetfile_login & $igetfile_pass){
  10.         $_REQUEST['login'] = $igetfile_login;
  11.         $_REQUEST['password'] = $igetfile_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=login value='' style="width:160px;" />&nbsp;</tr>
  23. <tr><td nowrap>&nbsp;Password*<td>&nbsp;<input type=password name=password 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 igetfile.com</div>
  38. <?php
  39.                         $post['op'] = "login" ;
  40.                         $post['redirect'] = "http://igetfile.com/" ;
  41.                         $post['login'] = $_REQUEST['login'];
  42.                         $post['password'] = $_REQUEST['password'];
  43.                         $page = geturl("igetfile.com", 80, "/login.html", 0, 0, $post, 0, $_GET["proxy"], $pauth);
  44.                         is_page($page);
  45.                         is_notpresent($page, 'HTTP/1.1 302 Moved', 'Error logging in - are your logins correct? First');
  46.                         preg_match_all('/Set-Cookie: (.*);/U',$page,$temp);
  47.                         $cookie = $temp[1];
  48.                         $cookies = implode(';',$cookie);
  49.                         $xfss=cut_str($cookies,'xfss=',' ');
  50.                         $page = geturl("igetfile.com", 80, "/?op=my_files", "http://igetfile.com/login.html", $cookies, 0, 0, "");
  51.                         is_page($page);
  52.                         is_notpresent($page, 'HTTP/1.1 200 OK', 'Error logging in - are your logins correct?Second');
  53. ?>
  54. <script>document.getElementById('login').style.display='none';</script>
  55. <div id=info width=100% align=center>Retrive upload ID</div>
  56. <?php
  57.                 $page = geturl("igetfile.com", 80, "/", 'http://igetfile.com/', $cookies, 0, 0, $_GET["proxy"]);
  58.                 if(!preg_match('#action="([^"]+)"#', $page, $up))html_error('Cannot get url action upload.', 0);
  59.                 if(!preg_match('#name="upload_type"[\r|\n|\s]+value="([^"]+)"#', $page, $utype))html_error('Cannot get upload type.', 0);
  60.                 if(!preg_match('#name="sess_id"[\r|\n|\s]+value="([^"]+)"#', $page, $sid))html_error('Cannot get session id.', 0);
  61.                 if(!preg_match('#name="srv_tmp_url"[\r|\n|\s]+value="([^"]+)"#', $page, $tmp))html_error('Cannot get tmp url.', 0);
  62.                 $uid = GenerateHexa(12);
  63.                 $n = mt_rand(0,50);
  64.                 $url = parse_url($up[1].$uid.'&js_on=1&utype=reg&upload_type='.$utype[1]);
  65.                 $post = array();
  66.                 $post["upload_type"] = $utype[1];
  67.                 $post["sess_id"] = $sid[1];
  68.                 $post["srv_tmp_url"] = $tmp[1];
  69.                 $post["link_rcpt"] = '';
  70.                 $post["link_pass"] = '';
  71.                 $post['tos'] = '1';
  72.                 $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), "http://igetfile.com/", $cookies, $post, $lfile, $lname, 'file_'.$n);
  73.                    
  74. ?>
  75.  
  76. <script>document.getElementById('progressblock').style.display='none';</script>
  77. <?php
  78. is_page($upfiles);
  79.                 preg_match_all("#>([^><]+)<#", $upfiles, $dl);
  80.                 if($dl[1][1] != 'OK')html_error('Erro in upload');
  81.                 $post['fn'] = $dl[1][0];
  82.                 $post['st'] = 'OK';
  83.                 $post['op'] = 'upload_result';
  84.                 $page = geturl("igetfile.com", 80, "/", 0, $cookie, $post, 0, $_GET["proxy"]);
  85.                 if(!empty($dl[1][0]))
  86.                 $download_link = 'http://www.igetfile.com/'.$dl[1][0].'/'.$lname.'.html';
  87.                 else
  88.                 html_error ("Didn't find download link!");
  89.                 if(preg_match("#killcode=([^=<]+)<#", $page, $del))
  90.                 $delete_link = $download_link.'?killcode='.$del[1];
  91.                 else
  92.                 html_error ("Didn't find delete link!");
  93. }
  94. function GenerateHexa($n, $l=0){
  95.     $ext = "0123456789";
  96.     $hex = "0123456789abcdef";
  97.     $let = str_split($hex,1);
  98.     $contbase = strlen($hex);
  99.     $comple = '';
  100.     $nn = $n+22;
  101.     for($i=0; $i < $nn; $i++){
  102.        $rand .= $ext{mt_rand() % strlen($ext)};
  103.     }
  104.     $base = $rand;
  105.     for ($i = $l; $i < $n; $i++) {
  106.         $base = bcdiv($base,$contbase,0);
  107.         $uid = $let[bcmod($base,$contbase)].$uid;
  108.     }
  109.     return $uid;
  110. }
  111.  
  112. // [13-May-2012] Written by bistarito
  113. ?>