# gunzip # Decompress gzip-compressed data (often used in multi-stage payload extraction) # FOR610 Labs: 3.4 | Sections: 3 % compression, extraction # Basic usage gunzip -c compressed.gz > output.bin # --- Recipes (multi-tool chains) --- # >> Decode Base64 + Gzip Payload # Find Base64 strings in the script base64dump.py -n 10 # Decode Base64 and decompress gzip in one chain base64dump.py -s -d | gunzip > decoded.ps1 # >> Full Office Macro Decode Chain # Step 1: List streams and extract VBA oledump.py oledump.py -s -v # Step 2: Extract Base64 from data stream oledump.py -s -d | base64dump.py -s 1 -d > stage1.ps1 # Step 3: Decode second Base64 layer + decompress base64dump.py stage1.ps1 -s 3 -d | gunzip > stage2.ps1 # Step 4: XOR decode the shellcode base64dump.py stage2.ps1 -s 2 -d | translate.py 'byte ^ 35' > shellcode.bin # Step 5: Emulate the shellcode scdbgc /f shellcode.bin /s -1