403Webshell
Server IP : 37.27.51.148  /  Your IP : 37.27.51.148
Web Server : nginx/1.14.1
System : Linux libra 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 20:24:04 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.31
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/plugins/thrive-leads/database/migrations/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/plugins/thrive-leads/database/migrations/gdpr-1.21.php
<?php

defined( 'TVE_LEADS_DB_UPGRADE' ) or exit();

/* find every csv and xls file from wp-content/uploads/thrive-contacts and remove it */
$upload_dir = wp_upload_dir();

if ( empty( $upload_dir['error'] ) ) {
	$save_path = $upload_dir['basedir'] . '/thrive-contacts';

	if ( is_dir( $save_path ) ) {
		$files = glob( $save_path . '/contacts-export-20*.{csv,xls}', GLOB_BRACE );
		foreach ( $files as $file ) {
			@unlink( $file );
		}
	} else {
		$save_path = $upload_dir['basedir'];
		/* search in uploads folder */
		$files = glob( $save_path . '/contacts-export-20*.{csv,xls}', GLOB_BRACE );
		//date( 'Y-m-d_H-i-s' );
		foreach ($files as $file) {
			if (preg_match('#/contacts-export-(\d{4})-(\d{2})-(\d{2})_(\d{2})-(\d{2})-(\d{2})\.(csv|xls)#', $file)) {
				@unlink($file);
			}
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit