PageRenderTime 47ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/hosts/ifile_it.php

https://github.com/gartz/RapidLeetch
PHP | 77 lines | 66 code | 10 blank | 1 comment | 6 complexity | 508f042c96b2c707c1695f2b48759a07 MD5 | raw file
  1. <?php
  2. if (!defined('RAPIDLEECH'))
  3. {
  4. require_once("index.html");
  5. exit;
  6. }
  7. if($_POST["ffi"] == "ok"){
  8. $cookie=$_POST["cookie"];
  9. $ddlreq= $_POST["link"].$_POST["captcha_check"].",0d149x=0";
  10. $Url = parse_url($ddlreq);
  11. $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].'?'.$Url['query'], $loc, $cookie, 0, 0, $_GET["proxy"],$pauth);
  12. is_present($page, "show_captcha", $strerror = "The captha inserted is wrong", 0) ;
  13. $Url = parse_url("http://ifile.it/dl");
  14. $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"], $loc, $cookie, 0, 0, $_GET["proxy"],$pauth);
  15. preg_match('/<a name="req_btn".*href="(.*)"/', $page, $loc);
  16. $Href = $loc[1];
  17. $Url = parse_url($Href);
  18. $FileName = !$FileName ? basename($Url["path"]) : $FileName;
  19. insert_location("$PHP_SELF?cookie=".urlencode($cook)."&filename=".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"]."&proxy=".($_GET["useproxy"] ? $_GET["proxy"] : "")."&saveto=".$_GET["path"]."&link=".urlencode($LINK).($_GET["add_comment"] == "on" ? "&comment=".urlencode($_GET["comment"]) : "")."&auth=".$auth.($pauth ? "&pauth=$pauth" : "").(isset($_GET["audl"]) ? "&audl=doum" : ""));
  20. }else{
  21. $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"], $Referer, 0, 0, 0, $_GET["proxy"],$pauth);
  22. is_page($page);
  23. preg_match_all('/Set-Cookie: (.*);/U',$page,$temp);
  24. $cookie = $temp[1];
  25. $cook = implode(';',$cookie);
  26. $Referer = $LINK;
  27. preg_match('/ocation: (.*)/',$page,$loc);
  28. $loc = trim($loc[1]);
  29. $Url = parse_url($loc);
  30. $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"], 0, $cook, 0, 0, $_GET["proxy"],$pauth);
  31. preg_match('/<input.*name="file_key".*value="(.*)"/',$page,$file_key);
  32. $file_key = $file_key[1];
  33. $dllink = "http://ifile.it/download:dl_request?it=".$file_key.",type=na,esn=1";
  34. $Url = parse_url($dllink);
  35. $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].'?'.$Url['query'], $loc, $cook, 0, 0, $_GET["proxy"],$pauth);
  36. is_page($page);
  37. if (strpos($page,'"message":"ok"'))
  38. {
  39. $Url = parse_url($dllink);
  40. $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].'?'.$Url['query'], $loc, $cook, 0, 0, $_GET["proxy"],$pauth);
  41. $Url = parse_url($loc);
  42. $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"], $loc, $cook, 0, 0, $_GET["proxy"],$pauth);
  43. $Referer = $loc;
  44. preg_match('/<a name="req_btn".*href="(.*)"/', $page, $loc);
  45. $Href = $loc[1];
  46. $Url = parse_url($Href);
  47. $FileName = !$FileName ? basename($Url["path"]) : $FileName;
  48. echo " <b>Filename : $FileName </b></br>";
  49. insert_location("$PHP_SELF?cookie=".urlencode($cook)."&filename=".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"]."&proxy=".($_GET["useproxy"] ? $_GET["proxy"] : "")."&saveto=".$_GET["path"]."&link=".urlencode($LINK).($_GET["add_comment"] == "on" ? "&comment=".urlencode($_GET["comment"]) : "")."&auth=".$auth.($pauth ? "&pauth=$pauth" : "").(isset($_GET["audl"]) ? "&audl=doum" : ""));
  50. } elseif (strpos($page,'show_captcha')){
  51. $rnd=mt_rand(10000000,99999999);
  52. $rnd='0.'.$rnd.($rnd>>1);
  53. $access_image_url='http://ifile.it/download:captcha?'.$rnd;
  54. $capimg = $PHP_SELF."?image=".urlencode($access_image_url)."&cookie=".urlencode($cook);
  55. $link ="http://ifile.it/download:dl_request?it=".$file_key.",type=simple,esn=0,0d149=";
  56. print "<form method=\"post\" action=\"".$PHP_SELF.(isset($_GET["audl"]) ? "?audl=doum" : "")."\">$nn";
  57. print "<b>Please enter code:</b><br>$nn";
  58. print "<img src=\"$capimg\">$nn";
  59. print "<input name=\"cookie\" value=\"$cook\" type=\"hidden\">$nn";
  60. print "<input name=\"ffi\" value=\"ok\" type=\"hidden\">$nn";
  61. print "<input name=\"link\" value=\"$link\" type=\"hidden\">$nn";
  62. print "<input name=\"captcha_check\" type=\"text\" >";
  63. print "<input name=\"Submit\" value=\"Submit\" type=\"submit\"></form>";
  64. }
  65. }
  66. // written by kaox 24/05/09
  67. ?>