Advertisement
Guest User

Untitled

a guest
Dec 12th, 2010
451
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.32 KB | None | 0 0
  1. <?php
  2. $Proxypath=""; #<----# INPUT BETWEEN THE QUOTES THE WEB LINK OF YOUR PROXY FIRST OF START
  3. # FOR EXAMPLE $Proxypath="http://www.proxyscripthome.com/path";
  4. if (!defined('RAPIDLEECH'))
  5. {
  6. require_once("index.html");
  7. exit;
  8. }
  9. if ( $premium_acc["hotfile_com"]["user"] && $premium_acc["hotfile_com"]["pass"])
  10. {
  11.  
  12. //////////////////////////////////////////////////////////// START PREMIUM /////////////////////////////////////////////////////////////
  13. $baseProxy=$Proxypath."/browse.php?u=";
  14. $Url=parse_url($baseProxy);
  15. $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"], 0, 0, 0, 0, $_GET["proxy"],$pauth);
  16. $pcookie= GetCookies($page);
  17.  
  18. $link=$baseProxy.urlencode("http://hotfile.com/login.php");
  19. $post=array();
  20. $post["returnto"]="/";
  21. $post["user"]=$_REQUEST["premium_user"] ? trim($_REQUEST["premium_user"]) : $premium_acc["hotfile_com"]["user"] ;
  22. $post["pass"]=$_REQUEST["premium_pass"] ? trim($_REQUEST["premium_pass"]) : $premium_acc["hotfile_com"]["pass"];
  23.  
  24. $Url=parse_url($link);
  25. $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $baseProxy, $pcookie, $post, 0, $_GET["proxy"],$pauth);
  26.  
  27. unset($post);
  28. $pcookie = $pcookie ."; ". GetCookies($page);
  29. $in="http://hotfile.com/?lang=en";
  30. $link=$baseProxy.urlencode($in);
  31. $Url=parse_url($link);
  32.  
  33. $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $baseProxy, $pcookie, 0, 0, $_GET["proxy"],$pauth);
  34.  
  35. $findpre=strpos($page,'<span>Premium</span>');
  36.  
  37. if(false===$findpre){
  38. html_error("xxxxx!.",0);
  39. }
  40.  
  41.  
  42. $link =$baseProxy.urlencode($LINK)."&b=4";
  43. $Url=parse_url($link);
  44. $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $baseProxy, $pcookie, 0, 0, $_GET["proxy"],$pauth);
  45.  
  46.  
  47. preg_match('/^HTTP\/1\.0|1 ([0-9]+) .*/',$page,$status);
  48. if ($status[1] == 200) {
  49. preg_match('/(http%3A%2F%2Fhotfile.com%2Fget.+)&/i', $page, $loca);
  50. $Href = rtrim($loca[1]);
  51. } else{
  52. preg_match('/Location:.+?\\r/i', $page, $loca);
  53. $redir = rtrim($loca[0]);
  54. preg_match('/http:.+/i', $redir, $loca);
  55. $Href = rtrim($loca[0]);
  56. }
  57. is_present($page,"File not found","File not found, the file is not present or bad link","0");
  58. is_present($page,"due to copyright","This file is either removed due to copyright claim or is deleted by the uploader.","0");
  59. if ($Href==""){
  60. echo "<div align=center>Error getting link . Please check if the link following is active <a target='_blank' href='".$LINK."'>".$LINK."</a></div>";
  61. exit;
  62. }
  63. $link =$baseProxy.$Href."&b=4";
  64. $Url =parse_url($link);
  65. $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $baseProxy, $pcookie, 0, 0, $_GET["proxy"],$pauth);
  66.  
  67. preg_match('/Location:.+?\\r/i', $page, $loca);
  68. $redir = rtrim($loca[0]);
  69. preg_match('/http:.+/i', $redir, $loca);
  70. $loc = rtrim($loca[0]);
  71. $dwn = urldecode(cut_str ( $page ,'u=' ,'&' ));
  72. $ip = "; ip=" . cut_str ( $page ,'[ip]=' ,';' );
  73. $cookie = "auth=" . cut_str ( $pcookie .";" ,'[auth]=' ,';' ).$ip;
  74. $Url =parse_url($dwn);
  75. $FileName = basename($Url["path"]);
  76. if (function_exists(encrypt) && $cookie!=""){$cookie=encrypt($cookie);};
  77. 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"] : "") . "&cookie=" . urlencode ( $cookie ) . "&proxy=" . ($_GET ["useproxy"] ? $_GET ["proxy"] : "") . "&saveto=" . $_GET ["path"] . "&method=POST&link=" . urlencode ( $LINK ) . ($_GET ["add_comment"] == "on" ? "&comment=" . urlencode ( $_GET ["comment"] ) : "") . "&auth=" . $auth . ($pauth ? "&pauth=$pauth" : "").(isset($_GET["audl"]) ? "&audl=doum" : "") );
  78.  
  79. //////////////////////////////////////////////////////////// END PREMIUM ///////////////////////////////////////////////////////////////
  80. }
  81. else
  82. {
  83.  
  84. $hf = $_POST['hf'];
  85. if($hf == "ok"){
  86. @unlink(urldecode($_POST["delete"]));
  87. $post=unserialize(urldecode($_POST['post']));
  88. $post["action"] = "checkcaptcha";
  89. $post["recaptcha_response_field"] = $_POST["captcha"];
  90. $Referer = $_POST["link"];
  91.  
  92.  
  93. $Url = parse_url($Referer);
  94. $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $Referer, $cookie, $post, 0, $_GET["proxy"],$pauth);
  95. is_page($page);
  96.  
  97. preg_match('/\/\d+\/\w+\/\w+\/[^\'"]+/i', $page, $down);
  98. $LINK="http://hotfile.com/get".$down[0];
  99. if ($down[0]==""){
  100. $dsource = cut_str($page,'<h3','</h3');
  101. $ddw = cut_str($dsource,'href="','"');
  102. $LINK=$ddw;
  103. }
  104.  
  105. if (!stristr($page,"REGULAR DOWNLOAD")){
  106.  
  107. $Url =parse_url($LINK);
  108. $FileName = basename($Url["path"]);
  109. $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"], $Referer, 0, 0, 0, $_GET["proxy"],$pauth);
  110. preg_match('/Location: *(.+)/', $page, $redir);
  111. if (strpos($redir[1],"http://")===false) {html_error("Server problem. Please try again after",0);}
  112. $redirect=rtrim($redir[1]);
  113. $Url = parse_url($redirect);
  114. insert_location("$PHP_SELF?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" : ""));
  115. }
  116.  
  117. }
  118. if($hf == "ok"){echo ("Wrong captcha .Please re-enter");}
  119. $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"], $Referer, 0, 0, 0, $_GET["proxy"],$pauth);
  120.  
  121. is_present($page,"File not found","File not found, the file is not present or bad link","0");
  122. is_present($page,"due to copyright","This file is either removed due to copyright claim or is deleted by the uploader.","0");
  123. is_present($page,"You are currently downloading","You are currently downloading. Only one connection with server allow for free users","0");
  124.  
  125. preg_match_all('/timerend=d\.getTime\(\)\+(\d+)/i', $page, $arraytime);
  126. $wtime=$arraytime[1][1]/1000;
  127. if ($wtime > 0 ) {
  128. $dowait = true;
  129. insert_timer($wtime, "You reached your hourly traffic limit");
  130. }
  131. $action=cut_str($page,"action value=",">");
  132. $tm=cut_str($page,"tm value=",">");
  133. $tmhash=cut_str($page,"tmhash value=",">");
  134. $wait=cut_str($page,"wait value=",">");
  135. $waithash=cut_str($page,"waithash value=",">");
  136. $post=array();
  137. $post["action"] =$action;
  138. $post["tm"] = $tm;
  139. $post["tmhash"] = $tmhash;
  140. $post["wait"] = $wait;
  141. $post["waithash"] = $waithash;
  142. insert_timer($wait, "Waiting timelock");
  143. $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"], $Referer, 0, $post, 0, $_GET["proxy"],$pauth);
  144. preg_match('/\/\d+\/\w+\/\w+\/[^\'"]+/i', $page, $down);
  145. $LINK="http://hotfile.com/get".$down[0];
  146.  
  147.  
  148. if ($down[0]==""){
  149. $dsource = cut_str($page,'<h3','</h3');
  150. $ddw = cut_str($dsource,'href="','"');
  151. $LINK=$ddw;
  152.  
  153. }
  154.  
  155.  
  156. if ($down[0]=="") {
  157. $nofinish=true;
  158.  
  159. $Url=parse_url("http://api.recaptcha.net/noscript?k=6LfRJwkAAAAAAGmA3mAiAcAsRsWvfkBijaZWEvkD");
  160.  
  161. $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $Referer, 0, 0, 0, $_GET["proxy"],$pauth);
  162. is_page($page);
  163. is_present($page,"Expired session", "Expired session . Go to main page and reattempt", 0);
  164.  
  165. $cookie = GetCookies($page);
  166. $ch = cut_str ( $page ,'recaptcha_challenge_field" value="' ,'"' );
  167.  
  168. if($ch){
  169. $Url=parse_url("http://api.recaptcha.net/image?c=".$ch);
  170. $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $Referer, $cookie, 0, 0, $_GET["proxy"],$pauth);
  171. $headerend = strpos($page,"\r\n\r\n");
  172. $pass_img = substr($page,$headerend+4);
  173. if($options["download_dir"]){
  174. $imgfile=$options["download_dir"]."hotfile_captcha.jpg";
  175. }else{
  176. $imgfile=$download_dir."hotfile_captcha.jpg";
  177. }
  178. if (file_exists($imgfile)){ unlink($imgfile);}
  179. write_file($imgfile, $pass_img);
  180. }else{
  181. html_error("Error get captcha", 0);
  182. }
  183.  
  184. $captchaid=cut_str($page,"captchaid value=",">");
  185. $hash1=cut_str($page,"hash1 value=",">");
  186. $hash2=cut_str($page,"hash2 value=",">");
  187.  
  188. unset($post);
  189. $post['recaptcha_challenge_field']=$ch;
  190.  
  191. print "<form method=\"post\" action=\"".$PHP_SELF.(isset($_GET["audl"]) ? "?audl=doum" : "")."\">$nn";
  192. print "<h4>Enter <img src=\"$imgfile\"> here:</h4><input name=\"captcha\" type=\"text\" >$nn";
  193. print "<input name=\"link\" value=\"$Referer\" type=\"hidden\">$nn";
  194. print '<input type="hidden" name="post" value="'.urlencode(serialize($post)).'">'.$nn;
  195. print "<input name=\"hf\" value=\"ok\" type=\"hidden\">$nn";
  196. print "<input type=\"hidden\" name=\"delete\" value=\"".urlencode($imgfile)."\" >".$nn;
  197. print "<input name=\"Submit\" value=\"Submit\" type=\"submit\"></form>";
  198. }
  199. if (!$nofinish){
  200. $Url =parse_url($LINK);
  201. $FileName = basename($Url["path"]);
  202. $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"], $Referer, 0, 0, 0, $_GET["proxy"],$pauth);
  203. preg_match('/Location: *(.+)/i', $page, $redir);
  204. if (strpos($redir[1],"http://")===false) {html_error("Server problem. Please try again after",0);}
  205. $redirect=rtrim($redir[1]);
  206. $Url = parse_url($redirect);
  207. insert_location("$PHP_SELF?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" : ""));
  208. }
  209. }
  210.  
  211. /********************************************************************************\
  212. WRITTEN by kaox 15-maj-2010 (bypass unblock hotfile system using proxy)
  213. \********************************************************************************/
  214. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement