From 350ace0e798af0f84fc8992a02f1a56f9f400aa8 Mon Sep 17 00:00:00 2001 From: n1474335 Date: Wed, 4 Sep 2019 15:23:14 +0100 Subject: [PATCH] Updated Automatic detection of encoded data using CyberChef Magic (markdown) --- Automatic-detection-of-encoded-data-using-CyberChef-Magic.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Automatic-detection-of-encoded-data-using-CyberChef-Magic.md b/Automatic-detection-of-encoded-data-using-CyberChef-Magic.md index c6f0d52..95958c0 100644 --- a/Automatic-detection-of-encoded-data-using-CyberChef-Magic.md +++ b/Automatic-detection-of-encoded-data-using-CyberChef-Magic.md @@ -6,12 +6,12 @@ Many common data encoding schemes, such as Base64, Hexadecimal and Gzip, have pr Example regular expression for Base64 data using the standard alphabet: ```regex -/^(?:[A-Z\\d+/]{4})+(?:[A-Z\\d+/]{2}==|[A-Z\\d+/]{3}=)?$/i +/^(?:[A-Z\d+/]{4})+(?:[A-Z\d+/]{2}==|[A-Z\d+/]{3}=)?$/i ``` Example regular expression for Base64 data using the y64 alphabet: ```regex -/^(?:[A-Z\\d._]{4}){5,}(?:[A-Z\\d._]{2}--|[A-Z\\d._]{3}-)?$/i +/^(?:[A-Z\d._]{4}){5,}(?:[A-Z\d._]{2}--|[A-Z\d._]{3}-)?$/i ``` ### Speculative execution