shell bypass 403

GrazzMean Shell

: /home/workvvfb/.trash/includes/Hooks/ [ drwxr-xr-x ]
Uname: Linux premium264.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Software: LiteSpeed
PHP version: 8.3.22 [ PHP INFO ] PHP os: Linux
Server Ip: 69.57.162.13
Your Ip: 216.73.216.219
User: workvvfb (1129) | Group: workvvfb (1084)
Safe Mode: OFF
Disable Function:
NONE

name : WpHook.php
<?php

/**
 * class WpHook
 *
 * @link       https://appcheap.io
 * @author     ngocdt
 * @since      1.2.0
 *
 */

namespace AppBuilder\Hooks;

use WP_Comment;
use WP_REST_Request;
use WP_REST_Response;

defined( 'ABSPATH' ) || exit;

class WpHook {

	public function __construct() {
		$args       = array(
			'public' => true,
		);
		$post_types = get_post_types( $args );
		foreach ( $post_types as $post_type ) {
			add_filter( "rest_prepare_$post_type", array( $this, 'add_acf_fields_to_post_type' ), 10, 3 );
		}
	}

	/**
	 *
	 * Add afc_fields fields to post type
	 *
	 * @param $response
	 * @param $post
	 * @param $request
	 *
	 * @return mixed|void
	 */

	public function add_acf_fields_to_post_type( $response, $post, $request ) {
		$data = $response->get_data();

		if ( isset( $data['acf'] ) && function_exists( 'get_field_objects' ) ) {
			if ( ! empty( $data['acf'] ) ) {
				$data['afc_fields'] = get_field_objects( $data['id'] );
			} else {
				unset( $data['acf'] );
			}
		}

		$response->set_data( $data );
		return $response;
	}

}
© 2025 GrazzMean