shell bypass 403

GrazzMean Shell

: /home/workvvfb/.trash/includes/Api/ [ 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.21 [ 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 : Comment.php
<?php

/**
 * Register Comment API
 *
 * @link       https://appcheap.io
 * @since      1.0.0
 * @author     ngocdt
 *
 */

namespace AppBuilder\Api;

defined( 'ABSPATH' ) || exit;

class Comment {

	/**
	 * Registers a REST API route
	 *
	 * @since 1.0.0
	 */
	public function register_routes() {
		add_filter( 'rest_prepare_comment', array( $this, 'rest_prepare_comment' ), 10, 3 );
		add_filter( 'rest_preprocess_comment', array( $this, 'rest_preprocess_comment' ), 10, 2 );
	}

	/**
	 * @param \WP_REST_Response $response
	 * @param \WP_Comment $comment
	 * @param \WP_REST_Request $request
	 *
	 * @return \WP_REST_Response
	 */
	public function rest_prepare_comment( \WP_REST_Response $response, \WP_Comment $comment, \WP_REST_Request $request ): \WP_REST_Response {
		$post = get_post( $comment->comment_post_ID );
		if ( $post ) {
			$response->data['post_data'] = $post;
		}

		return $response;
	}

	/**
	 * Add filter captcha comment post
	 *
	 * @param $prepared_comment
	 * @param $request
	 *
	 * @return mixed|void
	 */
	public function rest_preprocess_comment( $prepared_comment, $request ) {
		$validate = apply_filters( 'app_builder_validate_form_data', true, $request, 'CommentPost' );
		if ( is_wp_error( $validate ) ) {
			return $validate;
		}

		return $prepared_comment;
	}
}
© 2025 GrazzMean