403Webshell
Server IP : 172.67.201.108  /  Your IP : 216.73.216.25
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/newmandy/wp-content/wp-rss-aggregator/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/newmandy/wp-content/wp-rss-aggregator/includes/secure-reset.php
<?php  
	/**
	 * Contains the secure reset functionality.
	 *
	 * @package WP PRSS Aggregator
	 */ 


	add_action( 'plugins_loaded', 'wprss_check_secure_reset' );
	/**
	 * 
	 * 
	 * @since 3.7.1
	 */
	function wprss_check_secure_reset() {
		// Get the GET parameters
		$wprss_action = ( isset( $_GET['wprss_action'] ) )? $_GET['wprss_action'] : NULL;
		$wprss_security_code = ( isset( $_GET['wprss_security_code'] ) )? $_GET['wprss_security_code'] : NULL;

		// If at least one of them is not specified, exit
		if ( $wprss_action === NULL || $wprss_security_code === NULL ) {
			return;
		}

		// Get the code from the Database
		$DB_CODE = get_option( 'wprss_secure_reset_code', '' );

		// Check if the code is empty
		if ( $DB_CODE === '' || strlen( $DB_CODE ) === 0 ) {
			return;
		}

		// Check if the code in $_GET matches the one in the Database
		if ( $DB_CODE !== $wprss_security_code ) {
			// If not exit
			return;
		}

		// Do a reset of settings
		if ( $wprss_action === 'reset' || $wprss_action === 'reset_and_deactivate' ) {
			delete_option( 'wprss_settings_general' );
			delete_option( 'wprss_db_version' );
			delete_option( 'wprss_settings_license_keys' );
			delete_option( 'wprss_settings_license_statuses' );
			delete_option( 'wprss_addon_notices' );
			delete_option( 'wprss_settings_notices' );
			delete_option( 'wprss_pwsv' );
		}

		// Deactivate the plugin
		if ( $wprss_action === 'deactivate' || $wprss_action === 'reset_and_deactivate' ) {
			require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
			deactivate_plugins( WPRSS_FILE_CONSTANT, TRUE );
		}

	}

Youez - 2016 - github.com/yon3zu
LinuXploit