Mam tu dwa pliki, skrypty, to działa tak że wrzucam to na swój serwer
wklejam linki z rapidshare, podaje login i hasło (do mojego konta premium na rapidzie)
On tworzy linki które można pobrać bez limitu

Czy da się go tak zmienic aby działał on tak samo tylko ze z turbobit.net?



  1. plik skrypt.php
  2.  
  3. <?
  4. if(eregi("<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>rs2rs<span class="moz-txt-tag">/</span></i>",$_SERVER[REQUEST_URI])){$url=explode("/rs2rs",$_SERVER[REQUEST_URI]);
  5. $url=explode("/",$url[1]);
  6.  
  7. header('Content-Disposition: attachment;');
  8. $ch = curl_init();
  9. curl_setopt($ch, CURLOPT_URL,<a class="moz-txt-link-rfc2396E" href="http://$url%5B1%5D:$url%5B2%5D@rs$url%5b3%5d.rapidshare.com/files/$url%5B4%5D/$url%5B5%5D">"http://$url[1]:$url[2]@rs$url[3].rapidshare.com/files/$url[4]/$url[5]"</a>);
  10. curl_setopt($ch, CURLOPT_BINARYTRANSFER,1);
  11. curl_exec($ch);
  12. curl_close($ch);
  13. echo rand(0,9);die;
  14. }
  15. ?>
  16. <title>Rapidshare Upload - bsj</title>
  17. <body link=blue vlink=blue bgcolor=#0e1208 text=#ffffff topmargin=0 marginheight=0 leftmargin=0 marginwidth=0>
  18. <table width=100% cellpadding=0 cellspacing=0><tr>
  19. <td background=<a class="moz-txt-link-freetext" href="http://i39.tinypic.com/4puvpl.png">http://i39.tinypic.com/4puvpl.png</a> width=100% valign=middle height=125>
  20. <center><h1>Rapidshare - Remote Upload bsj</h1>
  21. <small><small><b>generuj swój własny link</td></tr></table>
  22.  
  23. <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>
  24. <? if($_POST[files]=="") { ?><form method=post><table cellpadding=14><tr><td><b><small>Login:</td><td><input type=text name=user></td></tr><tr><td><b><small>Hasło:</td><td><input type=password name=pass></td></tr></table>
  25. <b><center><small>Tutaj wklej linki:
  26. </b></small><textarea style=width:70%;height:40% name=files></textarea>
  27. <input type=submit value="Generate" style=font-size:16px;></form>
  28.  
  29. <?
  30. }
  31. else{echo"<small><b>Remote Uploads i wklej tam link(i): <textarea style=width:80%;height:40%>";
  32. $ch = curl_init();
  33. curl_setopt($ch, CURLOPT_URL,<a class="moz-txt-link-rfc2396E" href="http://rapidshare.com/cgi-bin/checkfiles.cgi">"http://rapidshare.com/cgi-bin/checkfiles.cgi"</a>);
  34. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  35. curl_setopt($ch, CURLOPT_POST, 1);
  36. curl_setopt($ch, CURLOPT_POSTFIELDS,"urls=$_POST[files]");
  37. $yy=curl_exec($ch);
  38. curl_close($ch);
  39. $lx=explode("File is on server number: ",$yy);
  40. foreach($lx as $mu){$du=explode(":<td align=right><a href=\<a class="moz-txt-link-rfc2396E" href="http://rapidshare.com/files/">"http://rapidshare.com/files/"</a>,$mu);
  41. if($du[1]==""){}else{$do=explode("\"",$du[1]);
  42. echo<a class="moz-txt-link-rfc2396E" href="http://$_server%5bhttp_host%5d$_server%5bscript_name%5d/rs2rs/$_POST%5Buser%5D/$_POST%5Bpass%5D/$du%5B0%5D/$do%5B0%5D%5Cn">"http://$_SERVER[HTTP_HOST]$_SERVER[SCRIPT_NAME]/rs2rs/$_POST[user]/$_POST[pass]/$du[0]/$do[0]\n"</a>;}}echo"</textarea>
  43.  
  44. MD5 zmieniono!
  45.  
  46.  
  47. <big>Zakończono</big>";}
  48. ?>
  49.  
  50.  
  51. plik debug.php
  52. <center><h1>Rapidshare Connection Check</h1><small><small>See if you are able to run RS related scripts on your server.</small></small>
  53.  
  54. <hr><big><b><? $cdpwezurokokok=curl_init(); set_time_limit(1942);curl_setopt($cdpwezurokokok, CURLOPT_URL,<a class="moz-txt-link-rfc2396E" href="http://rapidshare.com/cgi-bin/checkfiles.cgi">"http://rapidshare.com/cgi-bin/checkfiles.cgi"</a>);curl_setopt($cdpwezurokokok, CURLOPT_RETURNTRANSFER,1);curl_setopt($cdpwezurokokok, CURLOPT_POST, 1);curl_setopt($cdpwezurokokok, CURLOPT_POSTFIELDS,"urls=<a class="moz-txt-link-freetext" href="http://rapidshare.com/files/163284949/iptraf.png">http://rapidshare.com/files/163284949/iptraf.png</a>");$edpwezurokokok=curl_exec($cdpwezurokokok);curl_close($cdpwezurokokok);if(eregi("File is on server number",$edpwezurokokok)){ echo"CURL+POST TO <a class="moz-txt-link-freetext" href="http://rapidshare.com/cgi-bin/checkfiles.cgi">http://rapidshare.com/cgi-bin/checkfiles.cgi</a> works!
  55.  
  56. <font color=green>Ready to run the script!</font>"; }else{ echo"<font color=red>POST TO <a class="moz-txt-link-freetext" href="http://rapidshare.com/cgi-bin/checkfiles.cgi">http://rapidshare.com/cgi-bin/checkfiles.cgi</a> <b>DOES NOT work</b>! your CURL installation is somewhat limited or not even there. maybe the hostname \"rapidshare.com\" is blocked by your host for outside connections.
  57. sorry you wont be able to run the script on this server.</font>"; die; }echo"<hr>";$seti=ini_get('max_execution_time');if($seti==1942) { echo"<font color=green>Timelimit change is no problem.
  58. You are lucky.
  59. even with a slow server you can use this script.</font>"; } else { echo"<font color=red>Not able to change time-limit.
  60. use the script only if you have a fast server.</font>"; }$str=time();$cdpwezurokokok=curl_init();curl_setopt($cdpwezurokokok, CURLOPT_URL,<a class="moz-txt-link-rfc2396E" href="http://rs339.rapidshare.com/files/134699305/FIT.pdf">"http://rs339.rapidshare.com/files/134699305/FIT.pdf"</a>);curl_setopt($cdpwezurokokok, CURLOPT_RETURNTRANSFER,1);$edpwezurokokok=curl_exec($cdpwezurokokok);curl_close($cdpwezurokokok);$end=time();$rgeb=$end-$str;$speed=round(1970/$rgeb);echo"
  61.  
  62. Speedcheck took $rgeb seconds for a 2mb testfile.
  63. That means </b><font color=green>$speed KB/s</font><b>.
  64.  
  65. ";if($speed<=1000) { echo"<font color=red>SLOW SERVER! use only when all other checks are green!</font>"; } else { echo"<font color=green>FAST SERVER! you are the king.</font>"; }echo"</big></b><hr>
  66. <h1>PHPINFO:</h1>";phpinfo();?>