skrypt do kont premium

spiderspider

Użytkownik
Dołączył
Sierpień 27, 2009
Posty
3
posiada ktos lub znalazl na necie skrypt do kont prmium rapidshare

mam konto i chce udostepnic innym aby sobie sciagali (stronke stworzyc)


cos takiego tylko ten nie dziala:


index.php
<?
/*************************************

Rapidshare Premium Download Example

By : OpTiKaL
Date : November 08, 2006
Contact : [email protected]

**************************************/

define('IS_USED',1);

include('config.php');

?>

<html>

<head>
<title>PHP Rapidshare Premium Link Getter :: OpTiKaL</title>
</head>

<style type="text/css">

.bod {
text-align:center;
font-size: 10px;
width: 400px;
height: auto;
border: 1px dashed #DA9605;
font-weight: bold;
font-family: Arial-narrow, Tahoma, Arial, Helvetica, sans-serif;
}

</style>

<body>
<div align="center">
<div class="bod" align="center">
Rapidshare Premium Link Generator




<?php

$link=$_POST['link'];

if(strlen($link)>0) {

if( (substr($link, 0, 27)=='http://rapidshare.de/files/') || (substr($link, 0, 28)=='http://rapidshare.com/files/') ) {

if (substr($link, 0, 27)=='http://rapidshare.de/files/') {

if ( (strlen($de_user)>0) && (strlen($de_pass)>0) ) {
$check_dl=get_premium_link_de($de_user,$de_pass,$link);
} else {
$check_dl="This site doesnt have a Rapidshare.de account!";
}

} elseif (substr($link, 0, 28)=='http://rapidshare.com/files/') {

if ( (strlen($com_user)>0) && (strlen($com_pass)>0) ) {
$check_dl=get_premium_link_com($com_user,$com_pass,$link);
} else {
$check_dl="This site doesnt have a Rapidshare.com account!";
}
}

if ( (strpos($check_dl,"rapidshare.de/files/")) || (strpos($check_dl,"rapidshare.com/files/")) ) {
$premium_download='Click Here For your Premium Download!';
} else {
$premium_download=$check_dl;
}

} else {
echo "You did not insert an acceptable rapidshare link\n";
}
} else {
echo "Please insert a Rapidshare Link to get your Premium Download link.\n";
}

if( strpos($premium_download,"For your Premium Download") ) {
echo "Your link has been generated!
".$premium_download."
\n";
} else {
echo $premium_download."\n";
}
?>
<form action="<? echo $PHP_SELF; ?>" method="post">


<input type="text" name="link" style="width:300px;" />


<input type="submit" value="Get Premium Link" />
</form>

</div>
</body>

</html>[/b][/quote]



config.php
<?php

/*************************************

Rapidshare Premium Download Example

By : OpTiKaL
Date : November 08, 2006
Contact : [email protected]

**************************************/

if (!defined('IS_USED')) {
die( "You cannot access this file directly.");
}

// Rapidshare Username and Password
$de_user=''; // Rapidshare.de Customer-ID (The number id!)
$de_pass=''; // Rapidshare.de Pass
$com_user='''sircola2'; // Rapidshare.com Customer-ID (The number id!)
$com_pass=''; // Rapidshare.com Pass

// Get Rapidshare.de Download Link
function get_premium_link_de($rs_user, $rs_pass, $dl_link) {

$dl = explode("http://rapidshare.de", $dl_link);
$rs_link = $dl[1];
$post_packet = "uri=".$rs_link."&dl.start=PREMIUM&directstart=1";

$rs_cookie = "user=$rs_user-$rs_pass";

$sock_open=fsockopen("rapidshare.de", 80, $errno, $errstr, 30);

$packet = "POST /? HTTP/1.0
Connection: Keep-Alive
Content-Type: application/x-www-form-urlencoded
Content-Length: ".strlen($post_packet)."
Cookie: ".$rs_cookie."
Host: rapidshare.de
Accept: text/xml, */*
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding: identity
Accept-Language: de-de;q=0.5,en;q=0.3
User-Agent: RapidGet/1.2\r\n\r\n".$post_packet;

$tmp='';

fwrite($sock_open,$packet);

while(!feof($sock_open)) {
$tmp.=fgets($sock_open,128);
}

fclose($sock_open);

$redirect="Location: ";
$find_it=strpos($tmp,$redirect);

$bw='viel Download-Traffic geschlossen';
$find_bw=strpos($tmp,$bw);

$bad_file="Datei nicht gefunden.";
$find_bad=strpos($tmp,$bad_file);

if($find_it) {

$str_before=strpos($tmp,"Location: ")+10;
$str_after=strpos($tmp,"\r\n",$str_before);
$premium_link=substr($tmp, $str_before, $str_after - $str_before);
return $premium_link;

} elseif($find_bw) {
return "The account currently has no bandwidth";
} elseif($find_bad) {
return "That file doesn't exist.";
} else {
return "Unknown Error!";
}

}
// Get Rapidshare.com Download Link
function get_premium_link_com($rs_user, $rs_pass, $dl_link) {

$dl = explode("http://rapidshare.com", $dl_link);
$rs_link = $dl[1];
$post_packet = "uri=".$rs_link."&dl.start=PREMIUM&directstart=1";

$rs_pass = encode_pass($rs_pass);
$rs_cookie = "user=$rs_user-$rs_pass";

$sock_open=fsockopen("rapidshare.com", 80, $errno, $errstr, 30);

$packet = "POST / HTTP/1.1
Connection: Keep-Alive
Content-Type: application/x-www-form-urlencoded
Content-Length: ".strlen($post_packet)."
Cookie: ".$rs_cookie."
Host: rapidshare.com
Accept: text/xml, */*
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding: identity
Accept-Language: en;q=0.3
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6\r\n\r\n".$post_packet;

$tmp='';

fwrite($sock_open,$packet);

while(!feof($sock_open)) {
$tmp.=fgets($sock_open,128);
}

fclose($sock_open);

$redirect="Location: ";
$find_it=strpos($tmp,$redirect);

$empty_acc="is closed for today because of too much download-traffic.";
$no_bw=strpos($tmp,$empty_acc);

$alert_file=')</script>';
$find_alert=strpos($tmp,$alert_file);

if($find_it) {

$str_before=strpos($tmp,"Location: ")+10;
$str_after=strpos($tmp,"\r\n",$str_before);
$premium_link=substr($tmp, $str_before, $str_after - $str_before);
return $premium_link;

} elseif($no_bw) {

return "The account currently has no bandwidth!";

} elseif($find_alert) {

$str_before=strpos($tmp,")</script>")+10;
$str_after=strpos($tmp,".</p>",$str_before);
$err_alert=substr($tmp, $str_before, $str_after - $str_before);
return $err_alert;

} else {
return "Unknown Error!";
}

}

function encode_pass($rs_pass) {
for($i=0; $i<strlen($rs_pass); $i++) {
$enc_pass.="%".bin2hex($rs_pass{$i});
}
return strtoupper($enc_pass);
}

?>[/b]
 
Do góry Bottom