mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-07 06:57:12 -04:00
HTTP Gzip will search for gzip, otherwise return the original message.
This commit is contained in:
parent
b9d33c0618
commit
8ce8fac26c
1 changed files with 1 additions and 0 deletions
|
@ -267,6 +267,7 @@ const Compress = {
|
|||
|
||||
let regexStr = /1f8b080[0-8][0-9a-f]{12}/;
|
||||
let gzipPos = input.search(regexStr);
|
||||
if (gzipPos == -1) {return Utils.hexToByteArray(input);}
|
||||
let plainData = input.substr(0, gzipPos);
|
||||
let gzipData = input.substr(gzipPos);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue