Uploaded May 2024 | Updated November 2026, 3 hours ago
In Napper from HackTheBox, I'll need to pull values from an Elastic database that rotated every 5 minutes. The values are a seed and an encrypted blob. I'll use the seed with the random function in Go to generate a key, and use it to AES decrypt the blob. So today we're working in Go!
HackTheBox Napper Blog post: 0xdf.gitlab.io/2024/05/04/htb-napper.html
HackTheBox Napper: hackthebox.com/machines/napper
Elastic Go Example: github.com/elastic/go-elasticsearch/blob/main/_examples/encoding/gjson.go
Go gjson: github.com/tidwall/gjson
Elastic Client docs: https://pkg.go.dev/github.com/elastic/go-elasticsearch/v7#section-readme
Go getting started: https://go.dev/doc/tutorial/getting-started
☕ Buy Me A Coffee: buymeacoffee.com/0xdf
[00:00] Introduction
[01:17] Show data with curl
[03:23] Creating Go project
[04:25] Elastic example code
[06:28] Updating code to connect to Napper
[10:33] Removing unneeded example code
[11:23] Getting seed
[14:56] Getting blob
[19:11] Converting main to function
[21:38] Generating key from seed
[24:26] Decrypt blob
[29:12] Conclusion
#pentest #ctf #bugbounty #golang #go #elastic
In Napper from HackTheBox, I'll need to pull values from an Elastic database that rotated every 5 minutes. The values are a seed and an encrypted blob. I'll use the seed with the random function in Go to generate a key, and use it to AES decrypt the blob. So today we're working in Go!
HackTheBox Napper Blog post: 0xdf.gitlab.io/2024/05/04/htb-napper.html
HackTheBox Napper: hackthebox.com/machines/napper
Elastic Go Example: github.com/elastic/go-elasticsearch/blob/main/_examples/encoding/gjson.go
Go gjson: github.com/tidwall/gjson
Elastic Client docs: https://pkg.go.dev/github.com/elastic/go-elasticsearch/v7#section-readme
Go getting started: https://go.dev/doc/tutorial/getting-started
☕ Buy Me A Coffee: buymeacoffee.com/0xdf
[00:00] Introduction
[01:17] Show data with curl
[03:23] Creating Go project
[04:25] Elastic example code
[06:28] Updating code to connect to Napper
[10:33] Removing unneeded example code
[11:23] Getting seed
[14:56] Getting blob
[19:11] Converting main to function
[21:38] Generating key from seed
[24:26] Decrypt blob
[29:12] Conclusion
#pentest #ctf #bugbounty #golang #go #elastic
![Exploring a Simple Ruby Web Application [HackTheBox Precious Beyond Root]
In Precious from HackTheBox, Ill exploit a Ruby webserver. In this video, with a root shell, Ill go back and explore the server, to understand how it ties into nginx, how it runs the application, what the application does, and fix a bug in the application that blocks loading the local webserver.
#pentest #ctf
Full Precious Post: https://0xdf.gitlab.io/2023/05/20/htb-precious.html
Precious on HTB: https://hackthebox.grsm.io/box?box=precious
Phusion Docs: https://www.phusionpassenger.com/library/deploy/nginx/deploy/ruby/
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:45] Scenario / Webpage overview
[02:18] Looking at HTTP responses
[02:57] nginx service
[04:05] nginx config / phusion
[06:02] Ruby app analysis
[09:17] Loading localhost
[11:45] Conclusion Exploring a Simple Ruby Web Application [HackTheBox Precious Beyond Root]](https://i.ytimg.com/vi/Pmdx0e6aRxU/mqdefault.jpg)
![OnlyHacks [HackTheBox Web Challenge]
In this Valentines challenge from HackTheBox, Ill send an XSS payload to exfil a cookie from another chatty user on a dating site. RequestBin is a useful tool for catching HTTP requests.
RequestBin: https://requestbin.whapi.cloud/
OnlyHacks: https://app.hackthebox.com/challenges/OnlyHacks
404 pages: https://0xdf.gitlab.io/cheatsheets/404
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:28] Challenge description
[01:18] FoxyProxy config
[03:28] Initial page enumeration
[06:17] Registration and enumeration
[08:40] Chat interaction
[09:50] Introducing RequestBin
[11:34] Phishing
[13:20] XSS
[17:06] Conclusion
#HackTheBox #ctf #xss OnlyHacks [HackTheBox Web Challenge]](https://i.ytimg.com/vi/PsjCU9VnIxc/mqdefault.jpg)
![Reactor [AOC2025 Day 11]
Advent of Code 2025 Day 11 provides a list of nodes and the nodes that come after each one. Ill use recusrion to build a function that can count the number of paths between two nodes. In part 1, that solves. In part 2, I can use that, multiplying a few together to get an answer. Claude solves it very easily.
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:50] Pulling / examining input
[01:29] Parsing input
[02:35] Function to count paths between nodes
[03:57] Solving part 1
[04:22] Part 2 introduction
[05:08] Debugging on new example
[06:45] Looking at paths between fft and dac
[07:44] Multiplying paths
[08:39] Running, but too slow
[08:52] Adding caching to count_paths function
[09:20] Solving part 2
[09:35] Solving with Claude
[10:49] Analysis of Claudes solution
[12:15] Conclusion
#AdventOfCode #claude Reactor [AOC2025 Day 11]](https://i.ytimg.com/vi/QYdO0pXACOI/mqdefault.jpg)
![Insane Bolt [HackTheBox - Coding Challenge]
Insane Bolt is a medium difficulty coding challenge. Ill connect to a socket and read unicode dungeon maps. Ill have to navigate the robot through the maze collecting bolts and a gem, taking the shortest path. And Ill have to do that 500 times! Ill use BFS to make quick work of this.
Final code: https://gitlab.com/0xdf/ctfscripts/-/blob/master/htb-insane_bolt/solve.py
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[01:04] nc interaction
[01:49] Dependencies with uv
[03:39] Handle args
[04:18] Connect and general structure
[06:23] Unicode to ASCII
[11:13] Getting start, end, and path spaces
[13:56] BFS background
[15:20] BFS
[19:14] Working out bugs
[20:57] Parse / print status messages
[24:00] Handling EOFError
[25:36] Conclusion
#python #uv Insane Bolt [HackTheBox - Coding Challenge]](https://i.ytimg.com/vi/QzZ1viedbeE/mqdefault.jpg)
![NovaEnergy - HackTheSystem CTF
HackTheBox is running a Bug Bounty themed CTF, HackTheSystem June 27-29 2025. These challenges are all based on real bug bounty reports. There are two teaser challenges that are out now! Ill showcase one of them, NovaEnergy. Well find a Swagger API docs that allows us to leak an email verification token and bypass owning the email we registered with.
HackTheSystem - Bug Bounty CTF: https://ctf.hackthebox.com/event/details/hack-the-system-bug-bounty-ctf-2508
HackTheSystem Teaser Playground: https://ctf.hackthebox.com/event/details/hack-the-system-bug-bounty-ctf-playground-2509
HackerOne report: https://hackerone.com/reports/2712583
Mozilla Verification Bypass blog post: https://0d-amr.medium.com/bypass-email-verification-in-mozilla-2ab45ac36c42
CriticalOps Challenge w/ IppSec: https://youtu.be/j7uj1f6VkSs
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[01:02] Challenge introduction
[01:50] Exploring site
[03:24] Registering an account
[04:05] Looking at requests in Burp
[05:36] Directory brute force w/ feroxbuster
[07:30] Enumerating API
[08:30] Brute force again in /api/
[09:40] Swagger docs
[11:10] /email-verify endpoint
[12:18] /userDetails endpoint
[12:48] Solving challenge
[13:22] Bug bounty report / blog
[15:10] Conclusion
#bugbounty #ctf #hackthebox NovaEnergy - HackTheSystem CTF](https://i.ytimg.com/vi/Ru5toDyKNjg/mqdefault.jpg)
![Using GitHub to Look at Source for a CVE [HackTheBox - Forgot]
In Forgot from HackTheBox, Ill need to exploit an insecure use of tensorflow. Theres a CVE that does the same exploitation, and I want to see what the vulnerable code looks like. As a beginner, looking at GitHub for a large opensource project can be intimidating. Ill show how to find the code were looking for a couple ways, and find where it was patched to fix the default vulnerable behavior.
#pentest #ctf #bugbounty
Forgot blog post: https://0xdf.gitlab.io/2023/03/04/htb-forgot.html#cve-2022-29216
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:44] Googling function, finding CVE
[01:23] CVE-2022-29216 advisory
[02:12] Finding function in source
[03:45] Looking at function
[06:06] eval vs ast.literal_eval
[07:05] Finding code within project Using GitHub to Look at Source for a CVE [HackTheBox - Forgot]](https://i.ytimg.com/vi/S3BrESgR_Gg/mqdefault.jpg)
![Lobby [AOC2025 Day 3]
Advent of Code 2025 Day 3 provides lines of digits. I need to pick digits from each line without changing the order to make the largest integer possible. In part 1, Im looking for two digits. In part 2, I need 12. Claude has a hiccup on this one, trying to check all possible combinations of size 12, which is very large. When I break in and say theres a much faster solution, it solves it almost immediately. I ran Claude again, and it solved it without issue.
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:58] Pulling / examining input
[01:28] Strategy
[02:41] Messing with parsing then giving up
[03:42] Loop to find total power
[04:59] Fixing errors
[05:30] Solving part 1
[05:37] Part 2 introduction
[06:14] Refectoring part 1
[11:32] Fixing bugs
[13:55] Solving part 2
[14:37] Solving with Claude
[15:53] Stopping stuck Claude
[17:06] Re-prompting Claude to get back on track
[17:49] Analysis of Claudes solution
[19:56] Claude solve #2
[21:50] Conclusion
#AdventOfCode #claude Lobby [AOC2025 Day 3]](https://i.ytimg.com/vi/SDHlrk8dttQ/mqdefault.jpg)
![AWS CLI (Very) Intro [Sans Holiday Hack 2022 - Cloud Ring]
In this intro challenge, Ill look at the AWS command line utility and show how to use the help menus to solve a simple question for the SANS Holiday Hack Challenge.
SANS Holiday Hack 2022 writeup: https://0xdf.gitlab.io/holidayhack2022/cloud
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
#HolidayHack
[00:00] Introduction
[00:37] aws CLI overview / exploration
[01:20] aws help
[01:53] aws configure
[02:59] Get current caller identity
[04:12] Wrap-up AWS CLI (Very) Intro [Sans Holiday Hack 2022 - Cloud Ring]](https://i.ytimg.com/vi/SElHnC-OV_o/mqdefault.jpg)
![jq Injection [Jason - Hacky Easter 2023]
Jason is a jq injection challenge. Ill show how I initially solved it, and then simplify the answer down to show a couple shorter paths, all while demonstrating what jq is doing on the server.
Hacky Easter: https://23.hackyeaster.com/
Challenge: nc ch.hackyeaster.com 2304 (should be up through late June 2023)
My post on jq: https://0xdf.gitlab.io/2018/12/19/jq.html
rlwrap: https://github.com/hanslub42/rlwrap
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:53] Challenge page
[01:10] rlwrap demo
[01:47] Connecting
[02:05] Fuzzing input
[03:12] Local jq testing
[04:42] Bad assumption
[05:05] Solving with variables
[06:44] Using space pipe
[07:25] Printing full json
[08:01] Conclusion
#pentest #ctf #HackyEaster jq Injection [Jason - Hacky Easter 2023]](https://i.ytimg.com/vi/S_Gr3kZZ3HY/mqdefault.jpg)
![Automating x64dbg with x64dbgpython [Serpentine - Flare-On 2024]
For one of the Flare-On Challenges this year, #9 Serpentine, I needed to automate how I interact with my Windows debugger, x64dbg. In this video Ill show how to install the x64dbgpython plugin and start writing scripts that control the debugger with the full power of Python.
x64dbgpython Repo: https://github.com/ElvisBlue/x64dbgpython
Flare-On 2024 Solutions: https://0xdf.gitlab.io/flare-on-2024/
Final Tracer Script: https://gitlab.com/0xdf/ctfscripts/-/blob/master/flareon2024-9-serpentine/tracer-all.py
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[01:39] Installing plugin
[02:20] HelloWorld examples
[04:28] Strategy: test.py
[05:48] Quick binary overview
[09:10] Demo script
[15:27] Walking through final script
[20:21] Conclusion
#x64dbg #ctf #python Automating x64dbg with x64dbgpython [Serpentine - Flare-On 2024]](https://i.ytimg.com/vi/SkKaSn5JxAg/mqdefault.jpg)
![Day 2 - Bathroom Security [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 2 challenge, Bathroom Security, involves following directions around a digital keypad to figure out what buttons to push. The trick is to figure out when youre stepping off the edge of the keypad and do nothing instead.
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:25] Challenge Part 1
[01:24] genday.sh script
[01:46] Input analysis
[02:10] Part 1 tests
[04:02] Quick overview of stub
[04:30] parse function
[05:03] Part 1 strategy
[05:43] Creating map from direction to move
[06:40] Looping over input
[09:02] Debugging failing test
[09:51] Solving part 1
[10:08] Challenge part 2
[11:04] Part 2 tests
[11:50] Part 2 strategy
[13:52] part2 function
[15:14] Creating maps
[17:06] Conclusion
#ctf #adventofcode #revivalofcode #python Day 2 - Bathroom Security [Revival of Code 2023 - Advent of Code 2016]](https://i.ytimg.com/vi/Sp7U64ylPjE/mqdefault.jpg)