1337 Local CTF: MOL TAXI — Phishing PCAP → XOR Malware Layers

163 words
1 minute
1337 Local CTF: MOL TAXI — Phishing PCAP → XOR Malware Layers

MOL TAXI#

Challenge Context#

The challenge provided a phishing email and a small PCAP. The email claimed to be an urgent invoice and pointed the victim to an encrypted payload.

Attack Chain#

phishing_email.eml
-> invoice URL and decryption key
-> PCAP HTTP response body
-> XOR decrypt invoice.enc
-> Python loader
-> base64 + zlib payload
-> embedded flag XORed with C2 config

Reconnaissance#

The email revealed:

URL: http://malicious.local/invoice.enc
key: Sup3rS3cr3tK3y

The PCAP contained one HTTP GET for /invoice.enc and a 485-byte binary response.

Exploitation#

First layer: repeated-key XOR with the email key produced Python code:

import base64, zlib
exec(zlib.decompress(base64.b64decode(b'eJxtUdtq...')))

Instead of executing it, decode it safely. The decompressed malware contained:

enc_flag = [47, 87, 58, 39, 62, 58, 58, 46, 57, 0, 19, 44,
30, 37, 46, 51, 29, 93, 102, 112, 83, 50, 58, 56]
key = "C2_SERVER_READY_x99"

Flag recovery:

flag = ''.join(chr(enc_flag[i] ^ ord(key[i % len(key)])) for i in range(len(enc_flag)))
print(flag)

Flag#

leet{hlkk_Ai_awled_3ami}

Lesson Learned#

Do not execute malware loaders just because they are Python. Decode each layer statically and treat C2 configuration as likely key material.


Cover: Wallhaven xe86w3.

Share Article

If this article helped you, please share it with others!

1337 Local CTF: MOL TAXI — Phishing PCAP → XOR Malware Layers
https://achux21.github.io/posts/1337-local-ctf-mol-taxi/
Author
ACHUX21
Published at
2026-06-27
License
CC BY-NC-SA 4.0
Profile Image of the Author
ACHUX21
CTF player & security researcher
Notice
CTF writeups and security research. New posts coming soon.
Music
Cover

Music

No playing

0:00 0:00
No lyrics available
Categories
Tags
Site Statistics
Posts
28
Categories
3
Tags
81
Total Words
26,137
Running Days
0 days
Last Activity
0 days ago

Table of Contents