An HTML attachment that builds a ZIP
Extract a base64 HTML attachment from a raw message, decode it, and see how it assembles a ZIP in the browser so the mail gateway never sees the archive.
- Terminal mission
- Intermediate
- 3 questions
- 0 of 3 solved
Your goal
Your goalDecode an HTML attachment and show how it builds a ZIP file inside the browser.
Mail gateways scan attached archives and executables. HTML smuggling sends a harmless-looking HTML file instead; when opened, its script builds the payload in the browser and triggers a download.
Attachments in raw messages are MIME parts, usually base64 encoded. You can cut the part out with grep and decode it with base64 -d.
What’s on screen
- Briefing
- the story: what happened and what evidence you were handed.
- Terminal
- the dark box. It is a pretend Linux shell that runs in your browser. Type a command and press Enter. Nothing you type touches a real system.
- Walkthrough
- the numbered path. Each step says what to type and what you should see. Hints open one at a time.
- Answer boxes
- under each question step. Type what you found and press Check.
Words to know
- HTML
- the language web pages are written in
- ZIP
- a compressed archive file
- MIME
- the standard for attachments and content types
mail-triage · Email and phishing
Type help for the command list and objectives for your tasks. Everything runs in this browser.
Up and down arrows walk your history. Ctrl+L clears the screen. Try help, ls, and objectives.
Read first
More in Email and phishing
The whole walkthrough
Every step in order: 274 words, about 2 min. It gives away every answer, so try the steps first.