T.ME/BIBIL_0DAY
CasperSecurity


Server : Apache/2
System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User : gositeme ( 1004)
PHP Version : 8.2.29
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/gositeme/domains/gositeme.com/public_html/wp-content/plugins/ninjascanner/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/gositeme.com/public_html/wp-content/plugins/ninjascanner/uninstall.php
<?php 
/* 
 +=====================================================================+ 
 |     _   _ _        _       ____                                     | 
 |    | \ | (_)_ __  (_) __ _/ ___|  ___ __ _ _ __  _ __   ___ _ __    | 
 |    |  \| | | '_ \ | |/ _` \___ \ / __/ _` | '_ \| '_ \ / _ \ '__|   | 
 |    | |\  | | | | || | (_| |___) | (_| (_| | | | | | | |  __/ |      | 
 |    |_| \_|_|_| |_|/ |\__,_|____/ \___\__,_|_| |_|_| |_|\___|_|      | 
 |                 |__/                                                | 
 |                                                                     | 
 | (c) NinTechNet ~ https://nintechnet.com/                            | 
 +=====================================================================+ 
*/ 
 
if (! defined('WP_UNINSTALL_PLUGIN') ) { exit( "Not allowed" ); } 
 
// ===================================================================== // 
// NinjaScanner uninstaller (database + files + cron jobs). 
 
$nscan_options = get_option( 'nscan_options' ); 
 
if ( empty( $nscan_options['dont_delete_cache'] ) ) { 
 
	// Remove database options: 
	delete_option( 'nscan_options' ); 
 
	// Find and recursively delete any files and folders 
	// located inside the cache directory: 
	nscan_remove_dir_uninstall( WP_CONTENT_DIR .'/ninjascanner' ); 
} 
 
// Remove any potential cron jobs: 
if ( wp_next_scheduled( 'nscan_garbage_collector' ) ) { 
	wp_clear_scheduled_hook( 'nscan_garbage_collector' ); 
} 
if ( wp_next_scheduled( 'nscan_scheduled_scan' ) ) { 
	wp_clear_scheduled_hook( 'nscan_scheduled_scan' ); 
} 
 
return; 
 
// ===================================================================== // 
 
function nscan_remove_dir_uninstall( $dir ) { 
 
	if ( is_dir( $dir ) ) { 
		$files = scandir( $dir ); 
		foreach ( $files as $file ) { 
			if ( $file == '.' || $file == '..' ) { continue; } 
			if ( is_dir( "$dir/$file" ) ) { 
				nscan_remove_dir_uninstall( "$dir/$file" ); 
			} else { 
				unlink( "$dir/$file" ); 
			} 
		} 
		rmdir( $dir ); 
	} 
} 
 
// ===================================================================== 
// EOF 

CasperSecurity Mini