Uploaded January 2023 | Updated November 2026, 3 hours ago
The Hackvent day 20 challenge involves sending a message to a server and getting back that message and the flag, encrypted with AES electronic codebook (ECB) mode. Because of how the message and flag are padded seperately, it's not immediately obvious how I could change the position of the flag within a block. Some analysis will show that using multi-byte characters (like emoji) will abuse this, and allow me to set up blocks that contain the amount of the flag I want. I'll start with 1 character, and send in a frame of my own that should match, and see it does. This is a really fun Python programming exercise. I'll use this abuse to brute force the flag, and then show how to make it way faster by putting all possible next characters into the same request.
Hackvent 2022 writeup: Hackvent 2022 writeup: 0xdf.gitlab.io/hackvent2022/hard
AES-ECB: en.wikipedia.org/wiki/Block_cipher_mode_of_operation#Electronic_codebook_(ECB)
☕ Buy Me A Coffee: buymeacoffee.com/0xdf
#hackvent
[00:00] Introduction
[00:35] Looking at Python source
[01:25] Strategy
[03:45] Starting script with pwntools remote
[05:36] probe function
[07:28] printing results as block
[09:07] Playing with flag block spacing
[11:18] Finding flag length
[13:47] Manually showing last non-pad byte in flag is }
[15:08] Writing a loop to brute force each character
[20:11] Running, realizing some prints are required
[20:44] Running with status prints, breaks after two
[21:15] Need to update check to find correct block
[23:04] Running with correct checks
[23:30] Improving with much faster algorithm
[23:50] New function with multiple character check
[27:35] Running to figure out how to get characters from block match
[29:52] Adding prints to show progress and flag
[30:27] Wrap-up
The Hackvent day 20 challenge involves sending a message to a server and getting back that message and the flag, encrypted with AES electronic codebook (ECB) mode. Because of how the message and flag are padded seperately, it's not immediately obvious how I could change the position of the flag within a block. Some analysis will show that using multi-byte characters (like emoji) will abuse this, and allow me to set up blocks that contain the amount of the flag I want. I'll start with 1 character, and send in a frame of my own that should match, and see it does. This is a really fun Python programming exercise. I'll use this abuse to brute force the flag, and then show how to make it way faster by putting all possible next characters into the same request.
Hackvent 2022 writeup: Hackvent 2022 writeup: 0xdf.gitlab.io/hackvent2022/hard
AES-ECB: en.wikipedia.org/wiki/Block_cipher_mode_of_operation#Electronic_codebook_(ECB)
☕ Buy Me A Coffee: buymeacoffee.com/0xdf
#hackvent
[00:00] Introduction
[00:35] Looking at Python source
[01:25] Strategy
[03:45] Starting script with pwntools remote
[05:36] probe function
[07:28] printing results as block
[09:07] Playing with flag block spacing
[11:18] Finding flag length
[13:47] Manually showing last non-pad byte in flag is }
[15:08] Writing a loop to brute force each character
[20:11] Running, realizing some prints are required
[20:44] Running with status prints, breaks after two
[21:15] Need to update check to find correct block
[23:04] Running with correct checks
[23:30] Improving with much faster algorithm
[23:50] New function with multiple character check
[27:35] Running to figure out how to get characters from block match
[29:52] Adding prints to show progress and flag
[30:27] Wrap-up
![PHPs Unsafe parse_url Function [Encoding - HackTheBox]
In Encoding from HackTheBox, IppSec and I got different results trying to do the same thing, and we went to explore why. It turns out that passing a URL without a scheme and // will cause parse_url to return an empty string, which causes issues when its used as a filter.
Encoding blog post: https://0xdf.gitlab.io/2023/04/15/htb-encoding.html
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:28] Showing discrepency
[02:04] Looking at page source
[03:32] Adding echo to site
[04:34] Showing in php shell
[05:28] Looking at docs
[06:10] Hardening check PHPs Unsafe parse_url Function [Encoding - HackTheBox]](https://i.ytimg.com/vi/sXMqrgsf0b8/mqdefault.jpg)
![ffuf Auto Calibration Demystified
ffuf has a nice option to auto-calibrate filters with the -ac flag, but what does it really do? In this video Ill answer that, and then show the source code for how it happens.
Ippsec inspiration: https://youtu.be/2vEMGhOKlq0?si=DG5zEWqskCuCv9Cu&t=1020
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[0:00] Intro
[1:31] Documentation
[4:04] Source Code
[13:37] Conclusion
#ffuf #autocalibrate ffuf Auto Calibration Demystified](https://i.ytimg.com/vi/scHcQIDHcsc/mqdefault.jpg)
![Writing a Webshell Joomla Plugin [HackTheBox - DevVortex]
I found myself with Super Admin access to a Joomla site. I thought (incorrectly) that I couldnt edit the templates, so I set out to write a malicious plugin to provide a webshell, which Ill show in this video.
HackTheBox DevVortex Blog post: https://0xdf.gitlab.io/2024/04/27/htb-devvortex.html
HackTheBox DevVortex: https://www.hackthebox.com/machines/devvortex
Joomla Plugin Docs: https://docs.joomla.org/J4.x:Creating_a_Plugin_for_Joomla
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:53] Joomla Documentation
[01:06] Installation file
[03:10] Plugin PHP
[04:45] Deploy
[05:14] Execution via Webshell
[05:48] Conclusion
#pentest #ctf #bugbounty #joomla #plugin Writing a Webshell Joomla Plugin [HackTheBox - DevVortex]](https://i.ytimg.com/vi/sdF8YSPHql4/mqdefault.jpg)
![Laboratories [AOC2025 Day 7]
Advent of Code 2025 Day 7 visualizes a bean as it moves down the space hitting splitters. In part 1, I need to count the number of splits that happen. In part 2, I need to count the total number of paths possible through the space, assuming a partical could go either way at each splitter it reaches. Claude solves it almost the exact same way, other than that it uses a seperate loop for each part, whereas I did it in one loop.
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
[01:22] Pulling / examining input
[01:58] Finding S
[05:19] Debugging
[05:40] Solving part 1
[05:53] Part 2 introduction
[06:40] Strategy
[07:20] Refactoring beams into dictionary
[08:37] Refactoring to get to unstripped lines
[09:16] Keeping count of beams
[10:35] Counting beams
[10:50] Solving part 2
[11:02] Recapping solution
[12:56] Solving with Claude
[14:52] Analysis of Claudes solution
[16:20] Conclusion
#AdventOfCode #claude Laboratories [AOC2025 Day 7]](https://i.ytimg.com/vi/sq2OdJY3D_4/mqdefault.jpg)
![NeoVault - HackTheSystem CTF
HackTheBox ran a Bug Bounty themed CTF, HackTheSystem June 27-29 2025. These challenges are all based on real bug bounty reports. NeoVault is a chance to find a insecure direct object reference (IDOR) vulnerability in a banking website. From there, Ill get show two ways to find a Mongo object id. First, Ill send money to the user and look at the requests to get their ID. Second, Ill show how to take another user id and get other ids that could have been generated around the same time on the same system.
Mongo blog post: https://techkranti.com/idor-through-mongodb-object-ids-prediction/
HackerOne report: https://hackerone.com/reports/1464168
mongo-objectid-predict (original): https://github.com/andresriancho/mongo-objectid-predict
mongo-objectid-predict (python3): https://github.com/ArmanHZ/mongo-objectid-predict
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:44] Challenge introduction
[01:02] BugBounty reports
[02:30] Website enumeration
[04:25] Request analysis
[06:50] API routes
[07:52] Finding IDOR
[09:40] Finding user ID by sending money
[11:00] Mongo ID brute force
[14:14] Conclusion
#bugbounty #ctf #hackthebox #idor #mongo NeoVault - HackTheSystem CTF](https://i.ytimg.com/vi/tbbL4hshrus/mqdefault.jpg)
![Playing with Jenkins File Read [CVE-2024-23897]
Im looking at CVE-2024-23897, a partial file read vulnerability in Jenkins that leads to RCE. The goal of this video is to understand the vulenrability and look at a Python POC for the exploit, understand what it does, and then run it and compare it to the output when exploiting manually with the Jenkins CLI (using Java as a Jar file).
Jenkins CVE-2024-23897 disclosure: https://www.jenkins.io/security/advisory/2024-01-24/
Jenkins CLI: https://www.jenkins.io/doc/book/managing/cli/#downloading-the-client
POC: https://github.com/binganao/CVE-2024-23897
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[01:06] Jenkins security advisory
[02:26] Python POC
[05:34] Exploitation with CLI
[07:25] Python POC
[08:32] Isolating list of commands
[10:35] Starting while loop over commands
[11:22] Rabbit hole about bash loop
[16:15] Getting stats on each command
[19:19] Future work
[20:06] Conclusion
#pentest #ctf #bugbounty #jenkins #java #python Playing with Jenkins File Read [CVE-2024-23897]](https://i.ytimg.com/vi/toPJhfy-wvw/mqdefault.jpg)
![Mull It Over [Day 3 - Advent of Code 2024 - Python]
I am given a large blob of junk text containing three potential instructions. In part 1, I need to find all the mul(X,Y) instructions, multiple the values, and return the sum. In part 2, Ill process do() and dont() instructions that enable and disable the muls. Ill show a bad path I went down assuming alternating dos and donts, and solve with a loop over results from a regex match for all three instructions with a match statement.
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] Introduction
[00:43] Part1 introduction
[01:09] Setup / data overview
[01:40] Getting instructions w/ regex
[03:20] Summing products
[04:25] Solving part 1
[04:39] Part 2 challenge
[05:50] Failed strategy with re.sub
[08:00] Refactor part 1 with loop
[11:00] Adding count for part2
[11:23] Conclusion
#adventofcode #python Mull It Over [Day 3 - Advent of Code 2024 - Python]](https://i.ytimg.com/vi/tx7HhBuSP6g/mqdefault.jpg)
![Uncheesable [0xff: One Last Address]
The HTB Content team made me a goodbye CTF consisting of four challenges. In this video, Ill solve Uncheesable, a forensics challenge involving a memory dump from a custom Linux kernel. Ill pull the necessary kernel information from the dump to build the symbols information necessary for Volatility to interact with the dump. Then Ill find a malicious process that reads an ELF from a socket and writes it to a temporary file in memory. Ill find that file in memory and dump it to get the flag.
Boot headers: https://docs.kernel.org/arch/x86/boot.html
vmlinux-to-elf: https://github.com/marin-m/vmlinux-to-elf
btf2json: https://github.com/vobst/btf2json
uv CheatSheet: https://0xdf.gitlab.io/cheatsheets/uv
Linux syscalls: https://www.chromium.org/chromium-os/developer-library/reference/linux-constants/syscalls/#x86_64_319
memfd_create man page: https://man7.org/linux/man-pages/man2/memfd_create.2.html
Fakedoor writeup: https://blog.alpha-carinae.xyz/posts/fakedoor-vol3/#constructing-objects
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[01:15] Challenge introduction
[01:49] HTB blog post overview
[03:52] Carving the bzImage file
[10:08] Kernel banners w/ volatility
[11:19] Creating System.map file
[12:38] Creating ELF from kernel
[13:20] Generating symbols
[15:26] Volatility3 works! Process list!
[16:24] Using plugins to get suspicious file
[21:27] Ghidra RE
[26:36] Recovering the in-memory file
[33:52] Conclusion
#ctf #volatility #vol3 #custom-linux-kernel #ghidra #forensics Uncheesable [0xff: One Last Address]](https://i.ytimg.com/vi/txL58cgIYkw/mqdefault.jpg)
![Hacking PyJWT for Algorithm Confusion Attack [HackTheBox CyberMonday]
In the CyberMonday box from HackTheBox, the foothold involves exploiting an algorithm confusion attack against a JWT. When I went to sign the new JWT with the public key, PyJWT rejected me. In this video, well show the rejection, find the code responsible, and modify it to allow me to sign.
HackTheBox CyberMonday: https://www.hackthebox.com/machines/cybermonday
CyberMonday Blog Post: https://0xdf.gitlab.io/2023/12/02/htb-cybermonday.html
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[02:16] Review public key
[02:38] Creating Virtual Environment
[04:17] Failure in Python Terminal
[08:10] Finding Responsible Code
[10:08] Modifying to Allow
[11:25] Conclusion
#pentest #ctf #bugbounty #python #pyjwt Hacking PyJWT for Algorithm Confusion Attack [HackTheBox CyberMonday]](https://i.ytimg.com/vi/uzHXHaRFckE/mqdefault.jpg)
![Day 10: Pipe Maze [AOC2023 Python]
For Advent of Code 2023 Day 10, I get a map of pipes that includes a loop and a bunch of random pipes not a part of the loop. In part 1, Ill use a breadth first search to find all the pipes in the loop. In part 2, Ill use ray casting to find which spots are enclosed in the loop.
Code 2023 AOC: https://gitlab.com/0xdf/aoc2023
Challenge Link: https://adventofcode.com/2023/day/10
Ray casting algorithm: https://en.wikipedia.org/wiki/Point_in_polygon
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Part 1 description
[01:29] Input analysis
[02:08] Find start
[03:40] Find start type
[08:40] Update grid
[09:18] BFS
[11:30] get_valid_moves
[12:59] Debugging small issues
[14:20] Solve part 1
[14:35] Part 2 description
[16:19] Ray casting algorithm
[17:07] Removing non-loop items
[18:38] Walk each line
[22:30] Test cases
[23:24] Solve part 2
[23:32] Summary
#adventofcode #python Day 10: Pipe Maze [AOC2023 Python]](https://i.ytimg.com/vi/vJSETN-aTvw/mqdefault.jpg)
![Jumpio Adventure [HTB Stack Smash CTF]
As a teaser for the upcoming Stack Smash CTF, HackTheBox released Jumpio Adventure. Its a simple integer underflow followed by a buffer overflow to run the win function. Well show playing the game, reversing with Ghidra, debugging with gdb / Peda, and writing an exploit with Python and pwntools.
Stack Smash CTF: https://ctf.hackthebox.com/event/details/stacksmash-ctf-2538
Teaser Event: https://ctf.hackthebox.com/event/details/stacksmash-ctf-playground-2542
Peda: https://github.com/longld/peda
uv CheatSheet: https://0xdf.gitlab.io/cheatsheets/uv
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:48] Challenge introduction
[02:02] Playing game
[04:25] Ghidra RE
[14:00] BOF POC
[15:55] Finding overflow offset
[17:22] Solve script
[21:40] Using pwntools ELF
[22:56] Remote exploit
[23:53] Conclusion
#bugbounty #ctf #pwn #ghidra #reverse-engineering Jumpio Adventure [HTB Stack Smash CTF]](https://i.ytimg.com/vi/vQW113BLfvQ/mqdefault.jpg)