PageRenderTime 62ms CodeModel.GetById 35ms RepoModel.GetById 0ms app.codeStats 0ms

/hosts/download/zippyshare_com.php

https://github.com/gartz/RapidLeetch
PHP | 68 lines | 50 code | 11 blank | 7 comment | 5 complexity | 4666c8a8eebbe146627263a7aec0431c MD5 | raw file
  1. <?php
  2. if (!defined('RAPIDLEECH'))
  3. {
  4. require_once("index.html");
  5. exit;
  6. }
  7. if ($_POST["step"]==1){
  8. $LINK=$_POST["link"];
  9. $cookie = $_POST['cookie'];
  10. $FileName = $_POST['filename'];
  11. $Url=parse_url($LINK);
  12. //$page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), 0, $cookie, 0, 0, $_GET["proxy"],$pauth);
  13. //is_page($page);
  14. //insert_timer("10");
  15. insert_location("$PHP_SELF?filename=".urlencode($FileName)."&force_name=".urlencode($FileName)."&host=".$Url["host"]."&path=".urlencode($Url["path"].($Url["query"] ? "?".$Url["query"] : ""))."&referer=".urlencode($Referer)."&email=".($_GET["domail"] ? $_GET["email"] : "")."&partSize=".($_GET["split"] ? $_GET["partSize"] : "")."&method=".$_GET["method"]."&cookie=".urlencode($cookie)."&proxy=".($_GET["useproxy"] ? $_GET["proxy"] : "")."&saveto=".$_GET["path"]."&link=".urlencode($LINK).($_GET["add_comment"] == "on" ? "&comment=".urlencode($_GET["comment"]) : "")."&auth=".$auth.($pauth ? "&pauth=$pauth" : ""));
  16. }else{
  17. $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"], $Referer, 0, 0, 0, $_GET["proxy"],$pauth);
  18. is_page($page);
  19. if (cutter($page,"Location: ","\r")) html_error( "Probably the link is typed incorrect or old , verify it in your browser." , 0 );
  20. is_present($page,"file does not exist", "The requsted file does not exist on this server.", 0);
  21. $cookie=GetCookies($page);
  22. $FileName=cut_str($page,"Name: </strong>","</font>");
  23. $ss = <<<HTML
  24. <html>
  25. <head>
  26. <title>FormLogin</title>
  27. </head>
  28. <body bgcolor="#FFFFFF" text="#000000">
  29. <form method="post" name="plink" action="$PHP_SELF">
  30. <input id="link" name="link" type="hidden">
  31. <input type="hidden" name="cookie" value="$cookie" >
  32. <input type="hidden" name="step" value="1" >
  33. <input type="hidden" name="filename" value="$FileName">
  34. </form>
  35. HTML;
  36. preg_match('/(var pong[\s\S]+?)function/i',$page,$scr) ;
  37. //$script1=cutter($page,'var','function',3);
  38. $script1=$scr[1];
  39. $var=trim(cutter($script1,'var','=',2));
  40. $script1=str_replace($var,"encoded",$script1);
  41. $script=$ss.'<script language="Javascript">'.$script1.'document.getElementById("link").value=encoded; document.plink.submit();</script>' ;
  42. echo ($script);
  43. }
  44. function cutter($str, $left, $right,$cont=1)
  45. {
  46. for($iii=1;$iii<=$cont;$iii++){
  47. $str = substr ( stristr ( $str, $left ), strlen ( $left ) );
  48. }
  49. $leftLen = strlen ( stristr ( $str, $right ) );
  50. $leftLen = $leftLen ? - ($leftLen) : strlen ( $str );
  51. $str = substr ( $str, 0, $leftLen );
  52. return $str;
  53. }
  54. /*************************\
  55. WRITTEN BY KAOX 27-dec-09
  56. \*************************/
  57. ?>