Automating Malicious Zip with Symlinks [HackTheBox Zipping] @0xdf
Automating Malicious Zip with Symlinks [HackTheBox Zipping]  @0xdf
Uploaded January 2024 | Updated November 2026, 3 hours ago
In the Zipping box from HackTheBox, I can read files from the target host by submitting a zip file containing a symlink to the file I want to read. That can be done manually, but I'll want to script it to make life easier for myself. In this video, I'll show the vulnerability and then write the script. I'll use zipfile, io.BytesIO, regex, and requests. I'll update the script to handle cleanly binary files, and show that works by checking VirusTotal.

HackTheBox Zipping: hackthebox.com/machines/zipping
Zipping Blog Post: 0xdf.gitlab.io/2024/01/13/htb-zipping.html
FoxyProxy / Burp Video: youtube.com/watch?v=iTm33Miymdg
Stack Overflow Post: stackoverflow.com/questions/35782941/archiving-symlinks-with-python-zipfile
zipfile Docs: docs.python.org/3/library/zipfile.html#zipinfo-objects

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

[00:00] Introduction
[00:20] Manual Exploit Demo
[02:34] Rationale for scripting
[03:01] Getting symlink in Zip
[07:34] Testing Zip creation
[09:37] Improving file timestamp
[12:00] Sending file to website
[15:40] Getting URL of upload
[17:15] Getting raw result file
[17:42] Reading binary files
[18:32] Testing updated script
[19:33] Conclusion

#pentest #ctf #bugbounty #python #zip #virustotal
Automating Malicious Zip with Symlinks [HackTheBox Zipping]Day 16: The Floor Will Be Laba [AOC2023 Python]Bridge Repair [Day 7 - Advent of Code 2024 - Python]Day 14: Parabolic Reflector Dish [AOC2023 Python]Day 23 - Safe Cracking [Revival of Code 2023 - Advent of Code 2016]Oddly Even [HackTheBox - Coding Challenge]Free AI HTB TutorDay 20: Pulse Propagation [AOC2023 Python]Malicious LNK File Analysis0o337 [0xff: One Last Address]HackTheBox Napper: Read Elastic, Generate Key, Decrypt Blob in GolangExploring a Simple Ruby Web Application [HackTheBox Precious Beyond Root]
0xdf |

Automating Malicious Zip with Symlinks [HackTheBox Zipping]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER