Python Script to Read Files on RainyDay [HackTheBox] @0xdf
Python Script to Read Files on RainyDay [HackTheBox]  @0xdf
Uploaded February 2023 | Updated November 2026, 3 hours ago
In RainyDay from HackTheBox, I'll get access through a tunnel to a dev API that allows me to apply a regex to a file. I'll use this to brute force the entire contents of the file, writing a program in Python to do it.

RainyDay blog post: 0xdf.gitlab.io/2023/02/18/htb-rainyday.html
Final Script: gitlab.com/0xdf/ctfscripts/-/blob/master/htb-rainyday/file_read.py
Chisel: github.com/jpillora/chisel
FoxyProxy: addons.mozilla.org/en-US/firefox/addon/foxyproxy-standard
My FoxyProxy Configuration: youtube.com/watch?v=iTm33Miymdg

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

[00:00] Introduction
[00:59] Scenario overview
[02:02] FoxyProxy Configuration
[03:54] /api/healthcheck overview
[04:37] Writing Python script to login via proxy
[06:45] Verifying it works
[07:18] Checking regex against file
[10:04] Checking regex against /etc/hostname
[10:38] Adding check for arguments
[11:44] Brute forcing capability to read file
[14:57] Reading /etc/hostname
[15:26] Identifying / fixing crash on special characters
[18:00] Identifying / fixing only read one line
[20:00] Running final script to read /etc/lsb-release
[20:54] Conclusion
Python Script to Read Files on RainyDay [HackTheBox]Recent Updates in Feroxbuster 2.9.1Day 16 - Dragon Checksum [Revival of Code 2023 - Advent of Code 2016]Day 10 - Balance Bots [Revival of Code 2023 - Advent of Code 2016]cURLing - An Introduction to curl [Sans Holiday Hack 2024]Day 11: Cosmic Expansion [AOC2023 Python]Exploring the HackTheBox TwoMillion PHP Application [Beyond Root]Day 4: Scratchcards [AOC2023 Python]New: HackTheBox Guided Mode!Python Script to Read Files on Encoding [HackTheBox]Brute Forcing a Web Pin - Frosty Keypad [Sans Holiday Hack 2024]Printing Department [AOC2025 Day 4]
0xdf |

Python Script to Read Files on RainyDay [HackTheBox]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER