/vinaget/vng262/add.php
PHP | 291 lines | 242 code | 11 blank | 38 comment | 80 complexity | 92c0b57552de13488894859eb167b7b3 MD5 | raw file
- <?php
- error_reporting (E_ALL);
- define('vinaget', 'yes');
- include("class.php");
- function check_account($host,$account){
- global $obj;
- foreach ($obj->acc[$host]['accounts'] as $value)
- if ($account == $value) return true;
- return false;
- }
- if (empty($_POST["accounts"])==false) {
- $obj = new stream_get();
- $type = $_POST['type'];
-
- $_POST["accounts"] = str_replace(" ","",$_POST["accounts"]);
- $account = trim($_POST['accounts']);
- $donate = false;
- ################################## DONATE ACC real-debrid.com #################################################################
- if($type == "real-debrid"){
- if(check_account("real-debrid.com",$account)==true) die("false");
- if (stristr($account,':')) {
- list($user, $pass) = explode(':', $account);
- $data = $obj->curl("https://www.real-debrid.com/ajax/login.php?user=".urlencode($user)."&pass=".urlencode($pass),"","");
- //You are blocked for one hour because of too many attempts !
- if(strpos($data,"You are blocked")) die("You are blocked for one hour because of too many attempts !");
- elseif(strpos($data,"Your login informations are incorrect") || strpos($data,"Your account is not active or has been suspended") || strpos($data,"You are blocked"))
- die("false");
- else {
- preg_match('%(auth=.+);%U', $data, $cook);
- $cookie = $cook[1];
- }
- }
- else $cookie = $account;
- if(check_account("real-debrid.com",$cookie)==true) die("false");
- $cookie = preg_replace("/(auth=|AUTH=|Auth=)/","",$cookie);
- $data = $obj->curl("https://www.real-debrid.com","auth=".$cookie,"");
- if(preg_match('%<strong>Premium:</strong> (.*) </div>%U', $data, $matches)) {
- $obj->acc["real-debrid.com"]['accounts'][] = $account;
- $donate = true;
- }
- }
- ################################## DONATE ACC real-debrid.com #################################################################
-
- ################################## DONATE ACC alldebrid.com ###################################################################
- elseif($type == "alldebrid"){
- if(check_account("alldebrid.com",$account)==true) die("false");
- if (stristr($account,':')) {
- list($user, $pass) = explode(':', $account);
- $data = $obj->curl("http://www.alldebrid.com/register/?action=login&returnpage=","","login_login=".urlencode($user)."&login_password=".urlencode($pass));
- //you are banned 23min for non respect of AllDebrid flood policy (reason : Too mutch login fail.)
- if(strpos($data,"The password is not valid") || strpos($data,"You are banned"))
- die("false");
- else {
- preg_match("%uid=(.*);%U", $data, $matches);
- $cookie = $matches[1];
- }
- }
- else $cookie = $account;
- if(check_account("alldebrid.com",$cookie)==true) die("false");
- $cookie = preg_replace("/(uid=|UID=|Uid=)/","",$cookie);
- $data = $obj->curl("http://www.alldebrid.com/account/","uid=".$cookie,"");
- if(strpos($data,'</strong>Premium</li>')) {
- $obj->acc["alldebrid.com"]['accounts'][] = $account;
- $donate = true;
- }
- }
- ################################## DONATE ACC alldebrid.com ###################################################################
-
- ################################## DONATE ACC rapidshare.com ##################################################################
- elseif($type == "rapidshare"){
- if(check_account("rapidshare.com",$account)==true) die("false");
- if (stristr($account,':')) {
- list($user, $pass) = explode(':', $account);
- $data = $obj->curl("http://api.rapidshare.com/cgi-bin/rsapi.cgi","","sub=getaccountdetails&withcookie=1&withpublicid=1&login=".$user."&cbf=RSAPIDispatcher&cbid=2&password=".$pass);
- if(strpos($data,'Login failed'))
- die("false");
- else {
- $cookie = $obj->cut_str($data, "ncookie=","\\n");
- }
- }
- else $cookie = $account;
- if(check_account("rapidshare.com",$cookie)==true) die("false");
- $cookie = preg_replace("/(enc=|Enc=|ENC=)/","",$cookie);
- $data = $obj->curl("http://api.rapidshare.com/cgi-bin/rsapi.cgi","","sub=getaccountdetails&withcookie=1&withpublicid=1&withsession=1&cookie=".$cookie."&cbf=RSAPIDispatcher&cbid=1");
- if(preg_match('/billeduntil=([0-9]+)/', $data, $matches)) {
- if (time() < $matches[1]) {
- $obj->acc["rapidshare.com"]['accounts'][] = $account;
- $donate = true;
- }
- }
- }
- ################################## DONATE ACC rapidshare.com ##################################################################
-
- ################################## DONATE ACC megaupload.com ##################################################################
- elseif($type == "megaupload"){
- if(check_account("megaupload.com",$account)==true) die("false");
- if (stristr($account,':')) {
- list($user, $pass) = explode(':', $account);
- $data = $obj->curl("http://www.megaupload.com/?c=account","","username=$user&password=$pass&login=1");
- if(strpos($data,"Username and password do not match. Please try again!"))
- die("false");
- else {
- preg_match('/^Set-Cookie: (.*?);/m', $data, $matches);
- $cookie = $matches[1];
- }
- }
- else $cookie = $account;
- if(check_account("megaupload.com",$cookie)==true) die("false");
- $cookie = preg_replace("/(user=|USER=|User=)/","",$cookie);
- $data = $obj->curl("http://www.megaupload.com/?c=account","user=$cookie","");
- if(strpos($data,"Lifetime Platinum") || strpos($data,"remaining")) {
- $obj->acc["megaupload.com"]['accounts'][] = $account;
- $donate = true;
- }
- }
- ################################## DONATE ACC megaupload.com ##################################################################
-
- ################################## DONATE ACC hotfile.com #####################################################################
- elseif($type == "hotfile"){
- if(check_account("hotfile.com",$account)==true) die("false");
- if (stristr($account,':')) {
- list($user, $pass) = explode(':', $account);
- $data = $obj->curl("http://www.hotfile.com/login.php","","user=$user&pass=$pass");
- if(strpos($data,"Bad username/password combination"))
- die("false");
- else {
- preg_match('/^Set-Cookie: auth=(.*?);/m', $data, $matches);
- $cookie = $matches[1];
- }
- }
- else $cookie = $account;
- if(check_account("hotfile.com",$cookie)==true) die("false");
- $cookie = preg_replace("/(auth=|AUTH=|Auth=)/","",$cookie);
- $ch = @curl_init();
- curl_setopt($ch, CURLOPT_URL, "http://hotfile.com/myaccount.html");
- curl_setopt($ch, CURLOPT_HEADER, 1);
- curl_setopt($ch, CURLOPT_COOKIE, "auth=$cookie");
- curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_TIMEOUT, 60);
- $data = curl_exec( $ch);
- curl_close($ch);
- if(preg_match('%<p>Premium until: <span class="rightSide">(.+) <b>%U', $data, $matches)) {
- $obj->acc["hotfile.com"]['accounts'][] = $account;
- $donate = true;
- }
- }
- ################################## DONATE ACC hotfile.com #####################################################################
-
- ################################## DONATE ACC fileserve.com ###################################################################
- elseif($type == "fileserve"){
- if(check_account("fileserve.com",$account)==true) die("false");
- if (stristr($account,':')) {
- list($user, $pass) = explode(':', $account);
- $data = $obj->curl("http://fileserve.com","","");
- $cookie = $obj->GetCookies($data);
- $post['loginUserName'] = $user;
- $post['loginUserPassword'] = $pass;
- $post['loginFormSubmit'] = "Login";
- $data = $obj->curl("http://www.fileserve.com/login.php",$cookie,$post);
- if(strpos($data,"You are not logged in"))
- die("false");
- }
- else $cookie = $account;
- if(check_account("fileserve.com",$cookie)==true) die("false");
- $cookie = preg_replace("/(phpsessid=|Phpsessid=|PHPSESSID=)/","",$cookie);
- $data = $obj->curl("http://fileserve.com/dashboard.php","PHPSESSID=".$cookie,"");
- if(strpos($data,"<td><h4>Premium Until</h4></td>")) {
- $obj->acc["fileserve.com"]['accounts'][] = $account;
- $donate = true;
- }
- }
- ################################## DONATE ACC fileserve.com ###################################################################
-
- ################################## DONATE ACC filesonic.com ###################################################################
- elseif($type == "filesonic"){
- //==== Fix link FSN ====
- $url = "http://www.filesonic.com/";
- $data = $obj->curl($url,"","");
- if (preg_match('/ocation: (.*)/', $data, $fsnlink)) $url = trim($fsnlink[1]);
- $linkFSN= explode('/', $url);$urllogin = "http://".$linkFSN[2]."/user/login";
- //==== Fix link FSN ====
- if(check_account("filesonic.com",$account)==true) die("false");
- if (stristr($account,':')) {
- list($user, $pass) = explode(':', $account);
- $post["email"]= $user;
- $post["password"]= $pass;
- $page = $obj->curl($urllogin,"",$post);
- if(strpos($page,"No user found with such email"))
- die("false");
- else {
- $cookies = $obj->GetCookies($page);
- $cookie = explode(" ", $cookies);
- $cookie = $cookie[3];
- }
- }
- else $cookie = $account;
- if(check_account("filesonic.com",$cookie)==true) die("false");
- $cookie = preg_replace("/(phpsessid=|Phpsessid=|PHPSESSID=)/","",$cookie);
- $data = $obj->curl($url."user/settings","PHPSESSID=".$cookie,"");
- if(strpos($data,'Pro Membership Valid Until')) {
- $obj->acc["filesonic.com"]['accounts'][] = $account;
- $donate = true;
- }
- }
- ################################## DONATE ACC filesonic.com ###################################################################
-
- ################################## DONATE ACC wupload.com #####################################################################
- elseif($type == "wupload"){
- //==== Fix link ====
- $url = "http://www.wupload.com/";
- $data = $obj->curl($url,"","");
- if (preg_match('/ocation: (.*)/', $data, $fsnlink)) $url = trim($fsnlink[1]);
- $linkWU= explode('/', $url);$urllogin = "http://".$linkWU[2]."/account/login";
- //==== Fix link ====
- if(check_account("wupload.com",$account)==true) die("false");
- if (stristr($account,':')) {
- list($user, $pass) = explode(':', $account);
- $page = $obj->curl($urllogin,"","email=$user&redirect=%2F&password=$pass");
- if(strpos($page,"No user found with such email"))
- die("false");
- else {
- $cookie = $obj->GetCookies($page);
- preg_match('/lang=en; role=anonymous;(.*); PHPSESSID=(.*);/',$cookie,$temp);
- $cookie = $temp[2];
- }
- }
- else $cookie = $account;
- if(check_account("wupload.com",$cookie)==true) die("false");
- $cookie = preg_replace("/(phpsessid=|Phpsessid=|PHPSESSID=)/","",$cookie);
- $data = $obj->curl("http://".$linkWU[2]."/account/settings","PHPSESSID=".$cookie,"");
- if(strpos($data,'Premium Membership Valid Until')) {
- $obj->acc["wupload.com"]['accounts'][] = $account;
- $donate = true;
- }
- }
- ################################## DONATE ACC wupload.com #####################################################################
-
- ################################## savve account #############################################################################
- if($donate == true && is_array($obj->acc) && count($obj->acc) > 0) {
- $str = "<?php";
- $str .= "\n";
- $str .= "\n\$this->acc = array(";
- $str .= "\n";
- $str .= "# Example: 'accounts' => array('user:pass','cookie'),\n";
- $str .= "# Example with letitbit.net: 'accounts' => array('user:pass,cookie,prekey=xxxx'),\n";
- $str .= "\n";
- foreach ($obj->acc as $host => $accounts) {
- $str .= "\n '".$host."' => array(";
- $str .= "\n 'max_size' => ".($accounts['max_size']?$accounts['max_size']:1024).",";
- $str .= "\n 'accounts' => array(";
- foreach ($accounts['accounts'] as $acc) {
- $str .= "\"".$acc."\",";
- }
- $str .= "),";
- $str .= "\n ),";
- $str .= "\n";
- }
- $str .= "\n);";
- $str .= $obj->max_size_other_host ? "\n\$this->max_size_other_host = ".$obj->max_size_other_host.";" : "\n\$this->max_size_other_host = 1024;";
- $str .= "\n";
- $str .= "\n?>";
- $accountPath = "account.php";
- $CF = fopen ($accountPath, "w")
- or die('<CENTER><font color=red size=3>could not open file! Try to chmod the file "<B>account.php</B>" to 666</font></CENTER>');
- fwrite ($CF, $str)
- or die('<CENTER><font color=red size=3>could not write file! Try to chmod the file "<B>account.php</B>" to 666</font></CENTER>');
- fclose ($CF);
- @chmod($accountPath, 0666);
-
- echo "true";
- }
- else echo "false";
- ################################## savve account #############################################################################
-
- }
- /*
- * Home page: http://vinaget.us
- * Blog: http://blog.vinaget.us
- * Script Name: Vinaget
- * Version: 2.6.2 (18.11.2011)
- * Description:
- - Vinaget is script generator premium link that allows you to download files instantly and at the best of your Internet speed.
- - Vinaget is your personal proxy host protecting your real IP to download files hosted on hosters like RapidShare, megaupload, hotfile...
- - You can now download files with full resume support from filehosts using download managers like IDM etc
- - Vinaget is a Free Open Source, supported by a growing community.
- * Code LeechViet by VinhNhaTrang
- * Developed by ..:: [H] ::..
-
- */
- ?>