Need Rs2Rs Script

Status
Not open for further replies.
5 comments

  1. <?
  2. error_reporting(0);
  3. set_time_limit(3000);
  4. if(eregi("/rs2rs/",$_SERVER[REQUEST_URI])){$url=explode("/rs2rs",$_SERVER[REQUEST_URI]);
  5. $url=explode("/",$url[1]);
  6. header('Content-Disposition: attachment;');
  7. $ch = curl_init();
  8. curl_setopt($ch, CURLOPT_URL,"http://$url[1]:$url[2]@rs$url[3].rapidshare.com/files/$url[4]/$url[5]");
  9. curl_setopt($ch, CURLOPT_BINARYTRANSFER,1);
  10. curl_exec($ch);
  11. curl_close($ch);
  12. echo rand(0,9);die;
  13. }
  14. ?>
  15. <title>RapidshareRemote - RS2RS</title>
  16. <body link=blue vlink=blue bgcolor=#a8c973 text=#121212 topmargin=0 marginheight=0 leftmargin=0 marginwidth=0>
  17. <table width=100% cellpadding=0 cellspacing=0><tr>
  18. <td background=http://i37.tinypic.com/1eszfq.png width=100% valign=middle height=125>
  19. <center><h1>Rapidshare Remote</h1>
  20. <small><small><b>Generate links for remote upload!</td></tr></table>
  21. <br><center><style>body{font-family:tahoma,arial,verdena,sans-serif;}td{font-family:tahoma,arial,verdena,sans-serif;}input{border:0px;background-color:#dedede;}textarea{border:0px;background-color:#dedede;}</style>
  22. <center><? if($_POST[files]=="") { ?><form method=post><table cellpadding=10><tr><td><b><small>Username:</td><td><input type=text name=user></td></tr><tr><td><b><small>Password:</td><td><input type=password name=pass></td></tr></table><br><b><small>Rapidshare links:<br></b></small><textarea style=width:90%;height:50% name=files></textarea><br><input type=submit value="Generate" style=font-size:20px;></form><br>
  23. <?
  24. }
  25. else{echo"<small><b>Go to Remote Uploads and copy the link(s): <textarea style=width:90%;height:50%>";
  26. $ch = curl_init();
  27. curl_setopt($ch, CURLOPT_URL,"http://rapidshare.com/cgi-bin/checkfiles.cgi");
  28. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  29. curl_setopt($ch, CURLOPT_POST, 1);
  30. curl_setopt($ch, CURLOPT_POSTFIELDS,"urls=$_POST[files]");
  31. $yy=curl_exec($ch);
  32. curl_close($ch);
  33. $lx=explode("File is on server number: ",$yy);
  34. foreach($lx as $mu){$du=explode(":<td align=right><a href=\"http://rapidshare.com/files/",$mu);
  35. if($du[1]==""){}else{$do=explode("\"",$du[1]);
  36. echo"http://$_SERVER[HTTP_HOST]$_SERVER[SCRIPT_NAME]/rs2rs/$_POST[user]/$_POST[pass]/$du[0]/$do[0]\n";}}echo"</textarea><br><br>MD5 sum changed!<br><br><br><big>Enjoy!</big>";}
  37. ?>



Enjoy :D
 
Status
Not open for further replies.
Back
Top