403Webshell
Server IP : 172.67.201.108  /  Your IP : 216.73.217.39
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5
System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/home2/domains/siparentBAK/wp-content/plugins/event-test/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/home2/domains/siparentBAK/wp-content/plugins/event-test/includes/class-rest-api.php
<?php
/**
 * REST API for event access
 * @version 2.9
 */

class EVO_Rest_API{
	private $nonce = 'invalid';
	public function __construct(){
		add_action('wp_loaded', array($this, 'nonce_gen'));
		add_action( 'rest_api_init', array($this, 'rest_routes'));	

		
	}
	function nonce_gen(){
		$this->nonce = wp_create_nonce( 'rest_eventon' );
	}
	function rest_routes(){
		register_rest_route( 
			'eventon/v1','/data/', 
			array(
				'methods' => 'POST',
				'callback' => array($this,'rest_returns'),					
				'permission_callback' => function (WP_REST_Request $request) {
                	return true;
            	}
			) 
		);
	}

	function rest_returns( WP_REST_Request $request){
		$params = $request->get_params();

		$data = array();
		if(isset($params['action'])  ){			
			$nonce = wp_create_nonce( 'rest_'.EVO()->version );
			$response = EVO()->ajax->callback( $params['action'] , $nonce);
		}else{
			$response = array(
				'r'=> $params,
				'd'=> $data
			);
		}

						
		return $response;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit