Python Script to Read Files on Encoding [HackTheBox] @0xdf
Python Script to Read Files on Encoding [HackTheBox]  @0xdf
Uploaded April 2023 | Updated November 2026, 3 hours ago
In Encoding from HackTheBox, I've got a web endpoint that will return to me encoded copies of the files on the host. I'll write a Flask proxy so that I can easily enumerate the host, and even run a tool like git-dumper to download a Git repository.

Encoding blog post: 0xdf.gitlab.io/2023/04/15/htb-encoding.html
git-dumper: github.com/arthaud/git-dumper

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

[00:00] Introduction
[00:52] Scenario overview
[03:20] Vulnerability overview
[04:03] Strategy for proxy vs script vs in console
[04:58] Starting Flask server with path as variable
[07:17] Updating server to read /etc/passwd from Encoding
[08:58] Updating to take different file names
[09:36] Fixing response content-type to work with git-dumper
Python Script to Read Files on Encoding [HackTheBox]Brute Forcing a Web Pin - Frosty Keypad [Sans Holiday Hack 2024]Printing Department [AOC2025 Day 4]PowerShell Challenge [Sans Holiday Hack 2024]Scanning UDP with nmapReading (Almost) A Million QRCodes [Hackvent 2022 - Day 16]Day 1: Trebuchet?! [AOC2023 Python]Monkey Market [Day 22 - Advent of Code 2024 - Python]Unsafe Escape with Express JS / mysqljsMalicious Lnk and JavaScript AnalysisDay 24 - Air Duct Spelunking [Revival of Code 2023 - Advent of Code 2016]Garden Groups [Day 12 - Advent of Code 2024 - Python]
0xdf |

Python Script to Read Files on Encoding [HackTheBox]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER