Guest User

Untitled

a guest
Jun 29th, 2010
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.15 KB | None | 0 0
  1. <?php
  2.  
  3. ####### Free Account Info. ###########
  4. $hotfile_username=""; //  Set you username
  5. $hotfile_password=""; //  Set your password
  6. ##############################
  7.  
  8. $not_done=true;
  9. $continue_up=false;
  10. if ($hotfile_username & $hotfile_password){
  11.     $_REQUEST['my_login'] = $hotfile_username;
  12.     $_REQUEST['my_pass'] = $hotfile_password;
  13.     $_REQUEST['action'] = "FORM";
  14.     echo "<b><center>Use Default login/pass.</center></b>\n";
  15. }
  16. if ($_REQUEST['action'] == "FORM")  
  17.     $continue_up=true;
  18. else{
  19. ?>
  20. <table border=0 style="width:270px;" cellspacing=0 align=center>
  21. <form method=post>
  22. <input type=hidden name=action value='FORM' />
  23. <tr><td nowrap>&nbsp;Username*<td>&nbsp;<input type=text name=my_login value='' style="width:160px;" />&nbsp;</tr>
  24. <tr><td nowrap>&nbsp;Password*<td>&nbsp;<input type=password name=my_pass value='' style="width:160px;" />&nbsp;</tr>
  25. <tr><td colspan=2 align=center><input type=submit value='Upload' /></tr>
  26. <tr><td colspan=2 align=center><small>*You can set it as default in hotfile.com.php</small></tr>
  27. </table>
  28. </form>
  29.  
  30. <?php
  31.     }
  32.  
  33. if ($continue_up)
  34.     {
  35.         $not_done=false;
  36. ?>
  37. <table width=600 align=center>
  38. </td></tr>
  39. <tr><td align=center>
  40. <div id=info width=100% align=center>Retrive upload ID</div>
  41. <?php
  42.             $usr=$_REQUEST['my_login'];
  43.             $pass=$_REQUEST['my_pass'];
  44.             $ref="http://hotfile.com/";
  45.             $in=parse_url("http://hotfile.com/login.php");
  46.             $post=array();
  47.             $post["returnto"]="/";
  48.             $post["user"]=$usr;
  49.             $post["pass"]=$pass;
  50.             $page = geturl($in["host"], $in["port"] ? $in["port"] : 80, $in["path"].($in["query"] ? "?".$in["query"] : ""), $ref, 0, $post, 0, $_GET["proxy"],$pauth); 
  51.             preg_match('/auth=\w{64}/i', $page, $ook);
  52.             $cook=$ook[0];
  53.             if(!$cook){
  54.             html_error("Login Failed , Bad username/password combination.",0);
  55.             }
  56.            
  57.     ?>
  58. <script>document.getElementById('info').style.display='none';</script>
  59.  
  60.         <table width=600 align=center>
  61.             </td>
  62.             </tr>
  63.             <tr>
  64.                 <td align=center>
  65. <?php      
  66.           $in=parse_url("http://hotfile.com/");
  67.           $page = geturl($in["host"], $in["port"] ? $in["port"] : 80, $in["path"].($in["query"] ? "?".$in["query"] : ""), $ref, $cook, 0, 0, $_GET["proxy"],$pauth);   
  68.  
  69.           preg_match_all('/(action)[ ="]+.+?"/', $page, $act);
  70.           $action = preg_replace('/(action)[ ="]+/i', '', $act[0][0]);
  71.           $action = str_replace("\"","",$action);
  72.           $url=parse_url($action);
  73.           $fpost=array();
  74.           $upfiles = upfile($url["host"],$url["port"] ? $url["port"] : 80, $url["path"].($url["query"] ? "?".$url["query"] : ""), $ref, $cook, $fpost, $lfile, $lname, "uploads[]");
  75.          
  76.           if(preg_match('/Location: *(.+)/', $upfiles, $redir)){
  77.           $redirect=rtrim($redir["1"]);
  78.           $Url = parse_url($redirect);
  79.           }else{html_error("Error, no download link retrieved","0");}        
  80.           $page=geturl($Url['host'],"80",$Url ["path"]);
  81.  
  82.  
  83. ?>
  84. <script>document.getElementById('progressblock').style.display='none';</script>
  85. <?php  
  86.  
  87.           preg_match('/http:\/\/.+dl[^\'"]+/', $page, $dwn);  
  88.           preg_match('/http:\/\/.+kill[^\'"]+/', $page, $del);
  89.           $download_link = $dwn['0'];
  90.           $delete_link = $del['0'];
  91.         }
  92.            
  93.         // written by kaox 09/06/2009
  94. ?>
Advertisement
Add Comment
Please, Sign In to add comment