Uploaded May 2025 | Updated November 2026, 3 hours ago
I got an email from 0xSirius and Artu about a neat thing they found doing the Heal box from HackTheBox. The skipped the intended path of reading the SQLite DB directly and read the hash through the /proc file system. Let's dig into it!
Final code: gitlab.com/0xdf/ctfscripts/-/blob/master/htb-insane_bolt/solve.py
☕ Buy Me A Coffee: buymeacoffee.com/0xdf
[00:00] Introduction
[01:12] Showing vulnerability
[02:30] Showing fd read DB
[02:58] Exploring /proc
[06:40] Looking at file handles
[08:35] Fails reading cmdline, etc
[10:11] Conclusion
#file-read #ruby #proc
I got an email from 0xSirius and Artu about a neat thing they found doing the Heal box from HackTheBox. The skipped the intended path of reading the SQLite DB directly and read the hash through the /proc file system. Let's dig into it!
Final code: gitlab.com/0xdf/ctfscripts/-/blob/master/htb-insane_bolt/solve.py
☕ Buy Me A Coffee: buymeacoffee.com/0xdf
[00:00] Introduction
[01:12] Showing vulnerability
[02:30] Showing fd read DB
[02:58] Exploring /proc
[06:40] Looking at file handles
[08:35] Fails reading cmdline, etc
[10:11] Conclusion
#file-read #ruby #proc
![ThemeBleed Exploit Analysis (CVE-2023-38146)
ThemeBleed is a hot new exploit, and in this video, well take a look at a proof of concept exploit on GitHub to understand how it works and what its doing. Check out the Aero box on HackTheBox to exploit this yourself.
HackTheBox Aero: https://www.hackthebox.com/machines/aero
Aero Blog Post: https://0xdf.gitlab.io/2023/09/28/htb-aero.html
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:24] ThemeBleed Overview
[01:17] Exploit README
[03:55] Data Directory
[04:18] Main function
[04:54] Create Themepack
[05:26] Create Theme
[06:02] Run Server
[07:15] Filter Filesystem
[08:48] Conclusion
#pentest #ctf #bugbounty ThemeBleed Exploit Analysis (CVE-2023-38146)](https://i.ytimg.com/vi/CdzgD-eMOnY/mqdefault.jpg)
![Day 6 - Signals and Noise [Revival of Code 2023 - Advent of Code 2016]
Python Discord is doing an event called Revival of Code, where we work through the 2016 Advent of Code, one challenge every two days. The day 6 challenge, Signals and Noise, involves looking over columns of characters for the most and least commaon. zip and Counter do all the work here in this quick solve!
Repo for Advent of Code 2016 Solutions: https://gitlab.com/0xdf/aoc2016
Intro video for this event: https://www.youtube.com/watch?v=qEPpsS0StQI
Real Python post with templates: https://realpython.com/python-advent-of-code/
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:16] Challenge Part 1
[00:40] genday.sh / input
[01:23] Using PyTest fixture
[03:24] parse function
[04:13] Using zip to group columns
[05:37] Using Counter to get most common
[07:30] Challenge Part 2
[07:47] Part 2 test
[08:19] Solving part 2
#ctf #adventofcode #revivalofcode #python Day 6 - Signals and Noise [Revival of Code 2023 - Advent of Code 2016]](https://i.ytimg.com/vi/D3BMlkRjIhI/mqdefault.jpg)
![Secret Enterance [AOC2025 Day 1]
Advent of Code 2025 Day 1 has a simple circular combination lock with a set of instructions. Ill count the number of times that it stops on 0, and then the number of times it passes through 0. Then Ill look at Claudes solution to see how it approaches the challenge differently from me.
Solutions Repo: https://gitlab.com/0xdf/aoc2025
VSCode Debug Setup: https://www.youtube.com/watch?v=cNhtk2Ob4B8
Claude: https://claude.ai/
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:55] genday.sh overview
[01:20] Examining input
[01:35] Solving part 1
[03:16] Part 2 introduction
[03:33] Getting part2 count with int division
[04:32] Edge case 1: end on 0
[05:02] Edge case 2: start on 0 going left
[06:01] Edge case 3: end on neg multiple of 100
[07:12] Summary after distraction
[07:39] Finishing edge case 3
[08:52] Solving part 2
[09:15] Solving with Claude
[10:38] Comparing algorithms
[12:05] Conclusion
#AdventOfCode #claude Secret Enterance [AOC2025 Day 1]](https://i.ytimg.com/vi/Df6ASJUVnT4/mqdefault.jpg)
![Hacking KringleCon [Sans Holiday Hack 2022]
While playing Holiday Hack, its fun to hack at the game itself a bit. Ill walk through some simple things you can do in the Dev Tools for the browser to identify hidden objects and paths.
SANS Holiday Hack 2022 writeup: https://0xdf.gitlab.io/holidayhack2022/hacking
Tamper Monkey Script: https://gitlab.com/0xdf/ctfscripts/-/blob/master/holidayhack/EntLocations.js
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
#HolidayHack
[00:00] Introduction
[00:29] Dev tools network tab
[01:00] Inspecting images
[02:04] Using initiator to find elements in HTML
[03:03] List managed policies for current user
[04:07] Description of Tamper Monkey script
[04:50] Looking at websocket messages Hacking KringleCon [Sans Holiday Hack 2022]](https://i.ytimg.com/vi/DitXv8aDe_U/mqdefault.jpg)
![JavaScript / Bat File Polyglot Malware Dropper
Ive got a `unc.js` file that is actually a polyglot, a file that meets the specs of two different languages / formats. Its not only JavaScript, but a valid Windows bat file. Ill show how to deobfuscate both the JS and the bat to see how it drops and runs a Windows binary. This malware comes from HackTheBoxs Einladen Sherlock.
HackTheBox Einladen Blog post: https://0xdf.gitlab.io/2024/05/02/htb-sherlock-einladen.html
HackTheBox Einladen: https://app.hackthebox.com/sherlocks/Einladen
Any.Run sandbox of this malware: https://app.any.run/tasks/7f7626b2-1354-440f-b94e-1e8b270de4f3/
Other examples of ployglots: https://0xdf.gitlab.io/tags#polyglot
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:42] VSCode file overview
[01:24] Any.Run run
[02:05] Analysis as bat
[03:28] Replacing vars with chars
[04:56] Deobfuscated bat
[05:53] Strategy
[06:32] Conclusion
#pentest #ctf #bugbounty #golang #go #elastic JavaScript / Bat File Polyglot Malware Dropper](https://i.ytimg.com/vi/EaEaiqScvjA/mqdefault.jpg)
![NoSQL Injection Analysis [Shoppy - HackTheBox]
Well look at two similar NoSQL injections in the web application on the Shoppy box from HackTheBox. Ill configure VSCode to SSH into Shoppy and provide access. Ill show both injections in the code, and why they work. Then Ill fix both injections and show they no longer work.
Full Writeup: https://0x.gitlab.io/2023/01/14/htb-shoppy.html
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:43] Overview of application and NoSQL injections
[01:49] Setting up VSCode
[02:56] Setting up SSH profile
[04:49] Connecting in VSCode, setting up server
[05:50] Opening the ShoppyApp folder
[06:36] index.js overview
[08:45] NoSQL injection in user search
[09:39] Looking at schema objects
[10:17] Showing why injection in user search works
[11:27] Showing injection in login
[11:56] Fixing user search injection
[14:00] Fixing login injection NoSQL Injection Analysis [Shoppy - HackTheBox]](https://i.ytimg.com/vi/EfLW51f6KFo/mqdefault.jpg)
![Print Queue [Day 5 - Advent of Code 2024 - Python]
Today Im given input with a list of pairs of pages where the first page must be before the second, and then a list of numbers referred to as jobs. In part one, Ill check each job to see if it is valid, and if so, add up the middle number. In part 2, I have to sort the invalid jobs to fix them, and then sum those middle numbers. Ill use a custom sort function here.
2024 AOC repo: https://gitlab.com/0xdf/aoc2024/
2024 AOC Intro vide: https://www.youtube.com/watch?v=4XKZZrhhiQE
VSCode Debug video: https://www.youtube.com/watch?v=cNhtk2Ob4B8
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Part1 introduction
[01:15] Genday changes
[01:47] Setup / data overview
[02:24] Processing input
[05:05] Creating map for invalid orders
[07:43] Function to check job
[10:00] Fixing bugs
[12:34] Solving part 1
[12:57] Part 2 challenge
[13:14] Part 1 refactor
[13:57] Structure for part 2
[14:34] Custom sorting function
[16:27] Solving part 2
[16:47] Conclusion
[17:06] Revisit day 4
#adventofcode #python Print Queue [Day 5 - Advent of Code 2024 - Python]](https://i.ytimg.com/vi/Eqsy1x7VBNs/mqdefault.jpg)
![Hacking Reportinator [Sans Holiday Hack 2023]
In the Reportinator challenge, Im asked to evaluate findings written by an AI and find ones that are wrong or dont make sense. In this video, Ill look at how the answers are submitted and use the Python httx async library to brute force all possible combinations and find the answer.
Holiday Hack 2023 Solution: https://0xdf.gitlab.io/holidayhack2023/
Holiday Hack 2023 Game: https://2023.holidayhackchallenge.com/
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:33] Looking at submit HTTP request
[01:38] Strategy for scripting
[02:25] Setting up async brute force with httpx
[04:18] main outline
[06:17] Testing combinations
[09:00] test_combination function
[11:28] Debugging small issues
[12:38] Getting solution
[13:15] Beautifying output
[14:58] Summary
#adventofcode #python Hacking Reportinator [Sans Holiday Hack 2023]](https://i.ytimg.com/vi/FscEgomjtzc/mqdefault.jpg)
![Python UV for Hackers
In 2025, uv is the way to go for Python tool install and script running. Ill walk through how to install it, how to install packages replacing pipx, how to change Python versions, and how to run and kind of install stand-alone scripts. At the end, Ill show where uv is holding these virtual environments.
uv: https://github.com/astral-sh/uv
uv Scripts: https://thisdavej.com/share-python-scripts-like-a-pro-uv-and-pep-723-for-easy-deployment
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[01:30] uv background
[02:40] Installing a tool (pipx)
[04:13] Python versions
[05:50] Running a script with venv
[07:37] Running a script with uv
[09:07] Fake installing a script
[11:30] uv venvs
[12:23] Conclusion
#python #uv Python UV for Hackers](https://i.ytimg.com/vi/G36QXtBXKBQ/mqdefault.jpg)
![Day 25 - Clock Signal [Revival of Code 2023 - Advent of Code 2016]
Python Discord is doing an event called Revival of Code, where we work through the 2016 Advent of Code, one challenge every two days. The day 25 challenge, Clock Signal, brings back the assembunny computer again, this time with an output command. Ill solve this challenge two ways - first by analysis of the instructions itself, and then with a brute force in Python.
Day 23: https://www.youtube.com/watch?v=O-a0pQc7pxw
Day 12: https://www.youtube.com/watch?v=Z-qDyL-vyNA
Repo for Advent of Code 2016 Solutions: https://gitlab.com/0xdf/aoc2016
Intro video for this event: https://www.youtube.com/watch?v=qEPpsS0StQI
Configuring VSCode to debug PyTest: https://www.youtube.com/watch?v=zL2YTdIj3R8
Real Python post with templates: https://realpython.com/python-advent-of-code/
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:16] Challenge part 1
[01:09] genday
[01:36] Analysis of assembunny
[13:50] Solving from analysis
[14:48] Getting computer from day 23
[15:22] Adding out instruction
[17:18] Setting up solve to find solution
[18:47] Adding pretty print status
[19:19] Fixing typos
[19:35] Solving
[19:54] Solving part 2, conclusion
#ctf #adventofcode #revivalofcode #python Day 25 - Clock Signal [Revival of Code 2023 - Advent of Code 2016]](https://i.ytimg.com/vi/G6o6wI_K3U0/mqdefault.jpg)
![Reading 700 QRs with Python [Quilt - Hacky Easter 2023]
Quilt is a challenge presented as a 25 by 28 grid of QRcodes. Ill write a short Python script to read these, and then show using a tool called zbarimg to solve it for me.
Hacky Easter: https://23.hackyeaster.com
PIL: https://pillow.readthedocs.io/en/stable/
pyzbar: https://github.com/NaturalHistoryMuseum/pyzbar/
zbarimg: https://manpages.ubuntu.com/manpages/xenial/man1/zbarimg.1.html
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:47] Challenge review
[01:25] Creating Python script
[02:50] Testing image read, size
[05:35] Troubleshooting exceptions
[05:55] pyzbar output
[07:19] Looping over all images to solve
[08:51] pyzbar
#ctf #HackyEaster Reading 700 QRs with Python [Quilt - Hacky Easter 2023]](https://i.ytimg.com/vi/GDINE2PKfok/mqdefault.jpg)