Uploaded January 2023 | Updated November 2026, 3 hours ago
In these four challenges, I'm given a PCAP and a web log and asked to identify various attacked. I'll find the malicious IP, identify their brute force login attack, their forced browsing / directory brute force attack, and their XXE attack against the IMDS.
SANS Holiday Hack 2022 writeup: 0xdf.gitlab.io/holidayhack2022/web
☕ Buy Me A Coffee: buymeacoffee.com/0xdf
#HolidayHack
[00:00] Introduction
[00:24] Challenge Descriptions
[00:46] Statistics - Conversations
[02:46] Statistics - Protocol Hierarchy
[03:12] Form data POST requests
[04:24] Adding TCP stream and Host columns to Wireshark
[05:40] Looking to see if brute force is successful
[06:46] Looking at Cookie in JWT.io
[07:29] Doing similar analysis on web logs
[10:00] Answering first two questions
[10:18] Third question, solving with web logs
[10:47] Fourth question background, XXE and IMDS
[11:42] Looking at POSTs to /proc
[12:57] XXE payloads and results
[14:45] Getting URL to solve
[15:17] Wrap-up
In these four challenges, I'm given a PCAP and a web log and asked to identify various attacked. I'll find the malicious IP, identify their brute force login attack, their forced browsing / directory brute force attack, and their XXE attack against the IMDS.
SANS Holiday Hack 2022 writeup: 0xdf.gitlab.io/holidayhack2022/web
☕ Buy Me A Coffee: buymeacoffee.com/0xdf
#HolidayHack
[00:00] Introduction
[00:24] Challenge Descriptions
[00:46] Statistics - Conversations
[02:46] Statistics - Protocol Hierarchy
[03:12] Form data POST requests
[04:24] Adding TCP stream and Host columns to Wireshark
[05:40] Looking to see if brute force is successful
[06:46] Looking at Cookie in JWT.io
[07:29] Doing similar analysis on web logs
[10:00] Answering first two questions
[10:18] Third question, solving with web logs
[10:47] Fourth question background, XXE and IMDS
[11:42] Looking at POSTs to /proc
[12:57] XXE payloads and results
[14:45] Getting URL to solve
[15:17] Wrap-up
![Python Debugging [Chemistry - HackTheBox]
In Chemistry from HackTheBox, I am able to expliot a deserialization vulenrability in pymatgen to get RCE. My Bash reverse shell was acting a bit odd, and in this video, Ill show the process to figure out what was happening, adding breakpoints to debug live on HTB.
Full Chemistry solution: https://0xdf.gitlab.io/2025/03/08/htb-chemistry.html
IppSecs Chemistry video: https://www.youtube.com/watch?v=OH00LkpHyLk
Bash reverse shell explainer: https://www.youtube.com/watch?v=OjkVep2EIlw
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[01:30] Conundrum overview
[03:33] Getting Flask running debuggable
[06:36] Adding breakpoint in library
[07:57] Debugging broken payload
[09:26] Showing source of added *
[12:23] Why does /bin/bash work?
[14:17] Conclusion
#HackTheBox #ctf #python #debug #flask Python Debugging [Chemistry - HackTheBox]](https://i.ytimg.com/vi/_vCw3Vh0jBE/mqdefault.jpg)
![Claw Contraption [Day 13 - Advent of Code 2024 - Python]
Im given details for a bunch of games that I can map into a system of two linear equations. Ill use Cramers Rule to solve this very easily, both part 1 and part 2.
Cramers Rule: https://en.wikipedia.org/wiki/Cramer%27s_rule
2024 AOC repo: https://gitlab.com/0xdf/aoc2024/
2024 AOC Intro video: 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:25] Strategy
[03:15] Setup / data overview
[02:43] Parsing regions
[03:56] Reading data into puzzles
[04:50] Parsing into equations
[06:17] Cramers Rule
[07:13] Validating result
[08:10] Fixing small bugs
[09:43] Calculating part 1
[10:08] Solving part 1
[10:30] Part 2 challenge
[10:56] Refactoring part 1
[11:44] Solving part 2
[12:48] Conclusion
#adventofcode #python Claw Contraption [Day 13 - Advent of Code 2024 - Python]](https://i.ytimg.com/vi/aTeV8AVuyoY/mqdefault.jpg)
![Day 11 - Radioisotope Thermoelectric Generators [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 11 challenge, Radioisotope Thermoelectric Generator, is quite hard. Ill have to do a breadth-first search to brute force steps moving around chips and generators within some given rules. Lots of room for errors! Ill write several classes, make use of properties, deque, regex, and more.
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:42] Challenge Part 1
[02:11] genday.sh / input
[03:07] Item / Gen / Chip classes
[06:26] Floor class
[09:46] State class init (and bottom_floor property)
[12:23] State repr
[14:08] State hash and eq
[18:39] State is_complete property
[19:45] State is_valid property
[21:35] State next_states and generate_state
[27:08] Parsing input into State
[30:43] Debugging typos
[31:29] Checking State in debug
[32:41] Brute force part1 with BFS
[35:30] Debugging typos
[35:53] Running to part 1 solve
[36:17] Part 2 challenge
[36:53] Refactoring in prep for part 2
[37:35] Updating initial_state for part 2 and solving
[39:13] Conclusion
#ctf #adventofcode #revivalofcode #python Day 11 - Radioisotope Thermoelectric Generators [Revival of Code 2023 - Advent of Code 2016]](https://i.ytimg.com/vi/bGQtVTckSfI/mqdefault.jpg)
![Trash Compactor [AOC2025 Day 6]
Advent of Code 2025 Day 6 is all about parsing columns of text. In part 1, Ill parse lines of integers and operators as columns, calculating their products and sums. In part 2, I have to get the integers themselves as columns. Ill reply on zip a lot in this challenge. Claude solves it using very verbose code, but it works.
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:05] Pulling / examining input
[01:40] Procesing operartors and numbers
[03:36] Looping over columns
[06:21] Solving part 1
[06:38] Part 2 introduction
[07:50] Looking at input again
[08:37] Refactoring to get to unstripped lines
[09:32] Looping over columns
[10:18] Handling whitespace column
[11:50] Capturing operation character
[13:33] Processing numbers
[14:40] Troubleshooting
[18:34] Found issue with example input
[19:51] Solving part 2
[20:44] Solving with Claude
[22:05] Analysis of Claudes solution
#AdventOfCode #claude Trash Compactor [AOC2025 Day 6]](https://i.ytimg.com/vi/bgdo_CBPKn0/mqdefault.jpg)
![Hash Extension Attack [HackTheBox Ouija]
In Ouija, I need to do a Hash Extension attack to escalate access against an API. The issue is that I dont know the secret length. Ill use Python to write a wrapper around hash_extender to try lengths one by one and test them against the API until I find the right length, which means I have a valid hash.
HackTheBox Ouija Blog post: https://0xdf.gitlab.io/2024/05/18-htb-ouija.html
HackTheBox Ouija: https://www.hackthebox.com/machines/ouija
hash_extender: https://github.com/iagox86/hash_extender
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[01:13] Situation overview
[05:26] Hash extension attack
[07:35] Strategy with Python
[08:28] Creating class
[13:48] Testing initial class
[15:03] Processing hash_extender output
[17:09] Creating generate class method
[18:35] Making str function
[19:50] Encoded data property
[21:10] repr function
[22:08] Loop to brute secret length
[22:45] Checking if hash is valid
[24:45] Successful run
[25:30] Conclusion
#pentest #ctf #hash_extension #python Hash Extension Attack [HackTheBox Ouija]](https://i.ytimg.com/vi/bthSfRlJOfM/mqdefault.jpg)
![Analysis of a Python / GRPC Application [PC - HackTheBox]
In the PC box from HackTheBox, theres a GRPC server that Ill exploit to get a foothold. In this video, Ill look at the Python code used to make the server and understand how it works.
HackTheBox PC: https://www.hackthebox.com/machines/pc
PC Blog Post: https://0xdf.gitlab.io/2023/10/07/htb-pc.html
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:32] GRPC Background / QuickStart
[01:18] Looking at generated files
[03:10] middle.py
[03:26] app.py
[04:42] SQL injection analysis
[05:34] Conclusion
#pentest #ctf #bugbounty Analysis of a Python / GRPC Application [PC - HackTheBox]](https://i.ytimg.com/vi/c1XGbS4uRlw/mqdefault.jpg)
![Configuring VSCode to Debug Python [AOC2023 Python]
In support of my Advent of Code 2023 series, this video will show how to create a profile so that I can run a Python script with an argument relative to the location of the script.
Code 2023 AOC: https://gitlab.com/0xdf/aoc2023
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
#adventofcode #python Configuring VSCode to Debug Python [AOC2023 Python]](https://i.ytimg.com/vi/cNhtk2Ob4B8/mqdefault.jpg)
![Day 7 - Internet Protocol Version 7 [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 7 challenge, Internet Protocol Version 7, involves looking over columns of strings and doing some fancy Regex parsing, including capture groups, negative look-aheads, and overlapping matches with the regex module.
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/
Python regex: https://pypi.org/project/regex/
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:16] Challenge Part 1
[01:28] genday.sh / input
[02:10] Part 1 tests
[03:29] parse function
[05:51] Dumb testing of parse
[06:37] has_abba function
[08:38] Part 1 function
[10:51] Challenge Part 2
[11:35] Part 2 tests
[12:29] Solving part 2
[16:15] Debugging issues
[17:38] Solving
#ctf #adventofcode #revivalofcode #python Day 7 - Internet Protocol Version 7 [Revival of Code 2023 - Advent of Code 2016]](https://i.ytimg.com/vi/cVqQ2I3vd8o/mqdefault.jpg)
![MinMax [HackTheBox - Coding Challenge]
In another very easy coding challenge from HackTheBox, Ill read in a list of numbers, convert them to floats, and print the min and max values using Python. Ill show list comprehensions and map, as well as the long way with a for loop.
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:38] New HTB coding UI
[01:09] Converting input to list
[02:22] Converting list to ints using list comprehension
[03:06] Printing min and max
[03:30] Using map instead of list comprehension
[03:50] Exhausted generators
[04:46] Converting to list
[05:11] Solving with for loop
#python MinMax [HackTheBox - Coding Challenge]](https://i.ytimg.com/vi/cZNcRIlj42o/mqdefault.jpg)
![Python Script to Read Files on RainyDay [HackTheBox]
In RainyDay from HackTheBox, Ill get access through a tunnel to a dev API that allows me to apply a regex to a file. Ill use this to brute force the entire contents of the file, writing a program in Python to do it.
RainyDay blog post: https://0xdf.gitlab.io/2023/02/18/htb-rainyday.html
Final Script: https://gitlab.com/0xdf/ctfscripts/-/blob/master/htb-rainyday/file_read.py
Chisel: https://github.com/jpillora/chisel
FoxyProxy: https://addons.mozilla.org/en-US/firefox/addon/foxyproxy-standard/
My FoxyProxy Configuration: https://www.youtube.com/watch?v=iTm33Miymdg
☕ Buy Me A Coffee: https://www.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]](https://i.ytimg.com/vi/cu_wOqZbCqw/mqdefault.jpg)
![Recent Updates in Feroxbuster 2.9.1
feroxbuster is my go-to for brute forcing directory paths on webservers and API endpoints. It updates all the time, but I wanted to call our three recent updates from versions 2.8.0-2.9.1 (all released over the last 3 weeks):
- self update capability
- advanced smart filtering
- bug fix for API brute force (see Mentor post below).
#pentest #ctf #bugbounty
feroxbuster: https://github.com/epi052/feroxbuster
configuration thread: https://twitter.com/epi052/status/1553383554247262208?t=UX4OBc6Gq2r2g4occR-m-g&s=19
Mentor post: https://0xdf.gitlab.io/2023/03/11/htb-mentor.html
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:48] Background on feroxbuster
[01:41] Looking up version in Kali repo
[02:10] Looking at release frequency
[02:33] Autoupdate feature
[03:30] Versions used in this demo
[04:27] Walking through feroxbuster defaults
[07:52] New filtering feature (as of 2.8.0)
[08:53] Example from Mentor where auto-filter helps
[10:21] Fix for recursion bug
[12:31] Conclusion Recent Updates in Feroxbuster 2.9.1](https://i.ytimg.com/vi/d4tYWJzZ8QE/mqdefault.jpg)