- <?
- error_reporting(0);
- set_time_limit(3000);
- if(eregi("/rs2rs/",$_SERVER[REQUEST_URI])){$url=explode("/rs2rs",$_SERVER[REQUEST_URI]);
- $url=explode("/",$url[1]);
- header('Content-Disposition: attachment;');
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL,"http://$url[1]url[2]@rs$url[3].rapidshare.com/files/$url[4]/$url[5]");
- curl_setopt($ch, CURLOPT_BINARYTRANSFER,1);
- curl_exec($ch);
- curl_close($ch);
- echo rand(0,9);die;
- }
- ?>
- <title>RapidshareRemote - RS2RS</title>
- <body link=blue vlink=blue bgcolor=#a8c973 text=#121212 topmargin=0 marginheight=0 leftmargin=0 marginwidth=0>
- <table width=100% cellpadding=0 cellspacing=0><tr>
- <td background=http://i37.tinypic.com/1eszfq.png width=100% valign=middle height=125>
- <center><h1>Rapidshare Remote</h1>
- <small><small><b>Generate links for remote upload!</td></tr></table>
- <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>
- <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>
- <?
- }
- else{echo"<small><b>Go to Remote Uploads and copy the link(s): <textarea style=width:90%;height:50%>";
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL,"http://rapidshare.com/cgi-bin/checkfiles.cgi");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS,"urls=$_POST[files]");
- $yy=curl_exec($ch);
- curl_close($ch);
- $lx=explode("File is on server number: ",$yy);
- foreach($lx as $mu){$du=explode(":<td align=right><a href=\"http://rapidshare.com/files/",$mu);
- if($du[1]==""){}else{$do=explode("\"",$du[1]);
- 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>";}
- ?>