Permalink
Browse files

Add, fix plugin, support proxy like RL

Add, fix plugin, support proxy like RL
  • Loading branch information...
giaythuytinh176 committed May 9, 2015
1 parent 4f412a3 commit 7c9f45fc470635480d58e2c0c80ba9c17496fa66
Showing 324 changed files with 10,504 additions and 16,368 deletions.
@@ -1,60 +1,60 @@
Options -Indexes
DirectoryIndex index.php index.html index.htm
<IfModule mod_rewrite.c>
RewriteEngine on
#RewriteBase /;
## Begin - Rewrite rules to block out some common exploits.
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.

## Begin
#
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/(.*)/ index.php?file=$2 [L]
#
## End
</IfModule>

<files ~ "\.(php|php.*|sphp|php3|php4|php5|phtml|cgi|pl|shtml|dhtml|html|htm|txt|dat)$">
deny from all
</files>

<files add.php>
allow from all
</files>

<files index.php>
allow from all
</files>

<files login.php>
allow from all
</files>

<files debug.php>
allow from all
</files>

<files proccess.php>
allow from all
</files>

<files log.txt>
deny from all
</files>

<files ~ "^\.">
deny from all
</files>
Options -Indexes
DirectoryIndex index.php index.html index.htm
<IfModule mod_rewrite.c>
RewriteEngine on
#RewriteBase /;
## Begin - Rewrite rules to block out some common exploits.
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.

## Begin
#
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/(.*)/ index.php?file=$2 [L]
#
## End
</IfModule>

<files ~ "\.(php|php.*|sphp|php3|php4|php5|phtml|cgi|pl|shtml|dhtml|html|htm|txt|dat)$">
deny from all
</files>

<files add.php>
allow from all
</files>

<files index.php>
allow from all
</files>

<files login.php>
allow from all
</files>

<files debug.php>
allow from all
</files>

<files proccess.php>
allow from all
</files>

<files log.txt>
deny from all
</files>

<files ~ "^\.">
deny from all
</files>
@@ -1,69 +1,69 @@
<?php
error_reporting (E_ALL);
define('vinaget', 'yes');
include("class.php");
function check_account($host,$account){
global $obj;
if(empty($obj->acc[$host]['accounts'])) return false;
foreach ($obj->acc[$host]['accounts'] as $value) if ($account == $value) return true;
return false;
}
if (!empty($_POST["accounts"])) {
$obj = new stream_get();
$type = $_POST['type'];
$_POST["accounts"] = str_replace(" ","",$_POST["accounts"]);
$account = trim($_POST['accounts']);
$donate = false;
if(check_account($type,$account)) die("false duplicate");
require_once ('hosts/' . $obj->list_host[$type]['file']);
$download = new $obj->list_host[$type]['class']($obj, $type);
if($download->lib->acc[$download->site]['proxy'] != "") $download->lib->proxy = $download->lib->acc[$download->site]['proxy'];
if(method_exists($download, "CheckAcc")) {
if (strpos($account, ":")) {
list($user, $pass) = explode(':',$account);
$cookie = $download->Login($user, $pass);
}
else $cookie = $account;
$status = $download->CheckAcc($cookie);
if($status[0]) {
echo "true";
$update = true;
if(empty($obj->acc[$type])){
$obj->acc[$type]['max_size'] = $obj->max_size_default;
$obj->acc[$type]['proxy'] = "";
$obj->acc[$type]['direct'] = false;
}
$obj->acc[$type]['accounts'][] = $account;
$download->save($cookie);
}
else {
echo "false {$status[1]}";
$update = false;
}
}
else {
echo "false plugin fail";
$update = false;
}
################################## save account #############################################################################
if($update == true && is_array($obj->acc) && count($obj->acc) > 0){
$obj->save_json($obj->fileaccount, $obj->acc);
}
################################## savve account #############################################################################
}
/*
* Home page: http://vinaget.us
* Blog: http://blog.vinaget.us
* Script Name: Vinaget
* Version: 2.6.3
* 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] ::..
*/
<?php
error_reporting (E_ALL);
define('vinaget', 'yes');
include("class.php");
function check_account($host,$account){
global $obj;
if(empty($obj->acc[$host]['accounts'])) return false;
foreach ($obj->acc[$host]['accounts'] as $value) if ($account == $value) return true;
return false;
}
if (!empty($_POST["accounts"])) {
$obj = new stream_get();
$type = $_POST['type'];
$_POST["accounts"] = str_replace(" ","",$_POST["accounts"]);
$account = trim($_POST['accounts']);
$donate = false;
if(check_account($type,$account)) die("false duplicate");
require_once ('hosts/' . $obj->list_host[$type]['file']);
$download = new $obj->list_host[$type]['class']($obj, $type);
if($download->lib->acc[$download->site]['proxy'] != "") $download->lib->proxy = $download->lib->acc[$download->site]['proxy'];
if(method_exists($download, "CheckAcc")) {
if (strpos($account, ":")) {
list($user, $pass) = explode(':',$account);
$cookie = $download->Login($user, $pass);
}
else $cookie = $account;
$status = $download->CheckAcc($cookie);
if($status[0]) {
echo "true";
$update = true;
if(empty($obj->acc[$type])){
$obj->acc[$type]['max_size'] = $obj->max_size_default;
$obj->acc[$type]['proxy'] = "";
$obj->acc[$type]['direct'] = false;
}
$obj->acc[$type]['accounts'][] = $account;
$download->save($cookie);
}
else {
echo "false {$status[1]}";
$update = false;
}
}
else {
echo "false plugin fail";
$update = false;
}
################################## save account #############################################################################
if($update == true && is_array($obj->acc) && count($obj->acc) > 0){
$obj->save_json($obj->fileaccount, $obj->acc);
}
################################## savve account #############################################################################
}
/*
* Home page: http://vinaget.us
* Blog: http://blog.vinaget.us
* Script Name: Vinaget
* Version: 2.6.3
* 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] ::..
*/
?>
Oops, something went wrong.

0 comments on commit 7c9f45f

Please sign in to comment.