Brute-Forcing File Read with MD5s [HackTheBox Intentions] @0xdf
Brute-Forcing File Read with MD5s [HackTheBox Intentions]  @0xdf
Uploaded October 2023 | Updated November 2026, 3 hours ago
In Intentions from HackTheBox, I'll get a binary with the capabilities to read any file on the file system. This file will get an MD5 sum on the first N bytes of a file, where I control the filename and N. In this video, I'll show how to write a simple Python script that allows for reading any file on the file system by brute forcing it byte by byte.

Intentions Blog Post: 0xdf.gitlab.io/2023/10/14/htb-intentions.html
HTB Intentions: hackthebox.com/machines/intentions

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

[00:00] Introduction
[01:13] Overview of scanner
[02:17] Outline of main Python script
[05:38] Forgot we didn't finish!
[06:11] Using subprocess to get hash from scanner
[07:33] Using PDB to figure out syntax for stdout
[08:36] Brute forcing next byte
[09:52] Fixing output print
[10:22] Catching error from scanner
[11:45] Weirdness of scanner
[12:02] Showing success

#pentest #ctf #bugbounty
Brute-Forcing File Read with MD5s [HackTheBox Intentions]Digging into OFBiz ExploitationAdvent of Code 2025 - PreviewDay 8: Haunted Wasteland [AOC2023 Python]Historian Hysteria [Day 1 - Advent of Code 2024 - Python]Plutonian Pebbles [Day 11 - Advent of Code 2024 - Python]State of 0xdf (2026)Day 19: Aplenty [AOC2023 Python]Day 3: Gear Ratios [AOC2023 Python]Creating VMs with VagrantAnalysis of CVE-2023-37474 in CopyPartyDay 6: Wait For It [AOC2023 Python]
0xdf |

Brute-Forcing File Read with MD5s [HackTheBox Intentions]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER