Directory Traversal / File Read Into Zip with Python [HackTheBox Snoopy] @0xdf
Directory Traversal / File Read Into Zip with Python [HackTheBox Snoopy]  @0xdf
Uploaded September 2023 | Updated November 2026, 3 hours ago
In Snoopy from HackTheBox, I have a directory traversal / file read vulnerability in the website, but when the file comes back, it's inside a zip archive. I'll write a quick Python script that takes a file path and optional save location, gets the file, reads it from the zip, and then either prints it to the screen or saves it to a file.

Full Snoopy Blog Post: 0xdf.gitlab.io/2023/09/23/htb-snoopy.html
HTB Snoopy: hackthebox.com/machines/snoppy

☕ Buy Me A Coffee: buymeacoffee.com/0xdf

[00:00] Introduction
[00:49] Demonstrating the vulnerabity
[02:22] Starting Python, handling input
[03:38] Getting file
[04:18] Showing ways to debug
[06:00] Unzipping file
[08:38] Adding download option
[10:50] Conclusion

#pentest #ctf #bugbounty
Directory Traversal / File Read Into Zip with Python [HackTheBox Snoopy]Triple Knock [HackTheBox - Coding Challenge]Day 14 - One-Time Pad [Revival of Code 2023 - Advent of Code 2016]Introduction [Advent of Code 2024]Disk Fragmenter [Day 9 - Advent of Code 2024 - Python]Reassembling Werkzeugs Pin - Hacking Flask Debug Mode [Part 1]Keypad Conundrum [Day 21 - Advent of Code 2024 - Python]Modifying .NET Exe: Encrypt to Decrypt [HackTheBox Coder]Day 20 - Firewall Rules [Revival of Code 2023 - Advent of Code 2016]Day 5 - How About a Nice Game of Chess? [Revival of Code 2023 - Advent of Code 2016]Hacking the HackTheBox Code EditorRelic Maps [Forensics - Cyber Apocalypse 23 CTF]
0xdf |

Directory Traversal / File Read Into Zip with Python [HackTheBox Snoopy]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER