Uploaded December 2025 | Updated November 2026, 3 hours ago
Advent of Code 2025 Day 1 has a simple circular combination lock with a set of instructions. I'll count the number of times that it stops on 0, and then the number of times it passes through 0. Then I'll look at Claude's solution to see how it approaches the challenge differently from me.
Solutions Repo: gitlab.com/0xdf/aoc2025
VSCode Debug Setup: youtube.com/watch?v=cNhtk2Ob4B8
Claude: claude.ai
☕ Buy Me A Coffee: 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
Advent of Code 2025 Day 1 has a simple circular combination lock with a set of instructions. I'll count the number of times that it stops on 0, and then the number of times it passes through 0. Then I'll look at Claude's solution to see how it approaches the challenge differently from me.
Solutions Repo: gitlab.com/0xdf/aoc2025
VSCode Debug Setup: youtube.com/watch?v=cNhtk2Ob4B8
Claude: claude.ai
☕ Buy Me A Coffee: 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
![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)
![Day 17: Clumsy Crucible [AOC2023 Python]
For Advent of Code 2023 Day 17, I get a grid of values showing the heat gained moving through each space. Ill have to traverse from the top left to the bottom right gaining as little heat as possible. In part one, I can only go straight 3 times before I have to turn. In part two, I have to go straight at least 4 times, but not more than 10. Ill use some Dijkstra-like logic with a heapq to move through the grid in order of lowest heat total.
Code 2023 AOC: https://gitlab.com/0xdf/aoc2023
Challenge Link: https://adventofcode.com/2023/day/10
heapq: https://docs.python.org/3/library/heapq.html
Dijkstras Algorithm: https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Part 1 description
[01:15] Strategy preview
[01:31] Input fetch and analysis
[02:13] heapq
[04:24] Initialize grid
[05:57] Process queue
[11:36] Solve part 1
[11:52] Part 2 description
[12:12] Refactoring part 1 to part 2
[13:42] Debugging starting dr/dc error
[15:07] Solving part 2 ex.txt
[15:30] Other example fail
[15:56] Solve part 2
[16:08] Summary
#adventofcode #python Day 17: Clumsy Crucible [AOC2023 Python]](https://i.ytimg.com/vi/HLdEpEn1Q9g/mqdefault.jpg)
![Creating a SSH Honeypot with Python
I recently needed to be able to capture the credentials of someone trying to log into an SSH server I controlled. There are tons of nice honeypot products out there that will do this, but I wanted to understand how to do this in python. This video is a walkthrough of that understanding, starting with a listening socket (and how that works) and building up to a threaded server that logs usernames / passwords.
paramiko: https://www.paramiko.org/
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
My blog: https://0xdf.gitlab.io
[00:00] Introduction
[00:59] Creating listening socket
[03:28] Interacting with listening socket
[05:03] accept and log connection, write to and read from socket
[06:11] Demonstrating basic socket with read / write
[06:51] Using paramiko to setup dummy SSH server
[08:50] Interacting with dummy SSH server
[09:46] Demonstrating issue with server key
[11:15] Giving server a static key
[12:26] Accepting in a while True loop
[13:11] Upgrading accept into a thread
[16:02] Adding SSH component that will handle password login
[17:27] Demoing password logging
[17:42] Wrap up, next steps Creating a SSH Honeypot with Python](https://i.ytimg.com/vi/HO1h57CiF98/mqdefault.jpg)
![Linen Layout [Day 19 - Advent of Code 2024 - Python]
Im given a list of patterns, and then a bigger list of much bigger patterns. For each bigger pattern, I first need to figure out if I can make it from some combination of the smaller patterns. Then I need to figure out how many ways I can make it from the smaller patterns. Ill use recursion and caching to solve this relatively quickly.
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:26] Setup / data overview
[02:10] Parsing input
[03:00] Recursive function to check pattern
[04:48] Counting valid patterns
[05:18] Solving part 1
[05:41] Part 2 challenge
[06:08] Refactor to get count
[08:08] Fixing silly typo
[09:00] Adding cache
[09:45] Solving part 2
#adventofcode #python Linen Layout [Day 19 - Advent of Code 2024 - Python]](https://i.ytimg.com/vi/I8wXvENY9RY/mqdefault.jpg)