Uploaded January 2023 | Updated November 2026, 3 hours ago
A second challenge looking at the AWS CLI, this time using Trufflehog to leak creds from a public repo, and then using those to enumeration my access, eventually getting access to a S3 bucket and lambda functions, discovering a private URL.
SANS Holiday Hack 2022 writeup: 0xdf.gitlab.io/holidayhack2022/cloud
☕ Buy Me A Coffee: buymeacoffee.com/0xdf
#HolidayHack
[00:00] Introduction
[01:02] Trufflehog to get secrets
[02:13] Configure aws with secrets
[03:03] List managed policies for current user
[05:47] Getting policy details
[06:30] Getting default version of the policy
[07:46] List inline policies for current user
[08:56] Get policy associated with current user
[10:19] List objects in S3 bucket
[11:28] List lambda functions
[12:36] Find URL of function
[14:10] Trying to visit URL - error
[14:26] Wrap-up
A second challenge looking at the AWS CLI, this time using Trufflehog to leak creds from a public repo, and then using those to enumeration my access, eventually getting access to a S3 bucket and lambda functions, discovering a private URL.
SANS Holiday Hack 2022 writeup: 0xdf.gitlab.io/holidayhack2022/cloud
☕ Buy Me A Coffee: buymeacoffee.com/0xdf
#HolidayHack
[00:00] Introduction
[01:02] Trufflehog to get secrets
[02:13] Configure aws with secrets
[03:03] List managed policies for current user
[05:47] Getting policy details
[06:30] Getting default version of the policy
[07:46] List inline policies for current user
[08:56] Get policy associated with current user
[10:19] List objects in S3 bucket
[11:28] List lambda functions
[12:36] Find URL of function
[14:10] Trying to visit URL - error
[14:26] Wrap-up
![Playground [AOC2025 Day 8]
Advent of Code 2025 Day 8 involves connecting points in order of their distances apart. In part 1, Ill connect the closest 1000 points, and find the size of the three largest resulting sets. In part 2, Ill run until all the points are in one large set, calculating the answer from the x coordinates of the last two joined boxes. Ill use Union Find to manage my sets. 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.
Union Find Writeup: https://cp-algorithms.com/data_structures/disjoint_set_union.html
Union Find Video: https://www.youtube.com/watch?v=ayW5B2W9hfo
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:18] Pulling / examining input
[01:55] Processing points
[03:02] Calculating distances
[05:52] Union Find overview
[07:51] Create parent structure
[09:21] find_set function
[10:36] merge_sets function
[11:16] Merge closest sets
[12:50] Calculating set sizes
[14:10] Calculating part1 solution
[16:10] Solving part 1
[16:46] Part 2 introduction
[17:05] Strategy
[17:43] Refactoring dists loop
[18:45] Counting merges
[20:14] Finishing refactor of part 1
[20:48] Solving part 2
[21:05] Recapping solution
[21:29] Solving with Claude
[22:50] Analysis of Claudes solution
[26:29] Conclusion
#AdventOfCode #claude Playground [AOC2025 Day 8]](https://i.ytimg.com/vi/w9lRDqtWEA4/mqdefault.jpg)
![Copy Fail Explained [CVE-2026-31431]
Copy Fail is the latest Linux privesc CVE, and its a relatively simply exploit that overwrites files in the in-memory cache. The exploit will abuse this by overwriting the cahce for a SetUID binary and then running it. In this video Ill walk though the authors POC, show my own deobfuscated POC, and show how the vulnerability works. To close, Ill run it on the HTB Snapped machine and show how to cleanup the exploit.
Copy-Fail: https://copy.fail/#exploit
Original POC: https://github.com/theori-io/copy-fail-CVE-2026-31431
Deobfuscated POC: https://github.com/0xdf223/copy-fail-CVE-2026-31431
HTB Snapped post: https://0xdf.gitlab.io/2026/04/01/htb-snapped.html
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[01:13] Authors writeup
[02:00] Authors POC
[04:25] Deobfuscated POC
[04:26] Three interesting cases: shadow, root.txt, .bash_history
[05:17] Vulnerability / exploit overview
[06:56] Walking through POC
[08:52] Analysis of the compressed hex payload
[13:04] Running on HTB Snapped
[13:55] Cleanup
[14:55] Conclusion
#copy-fail #privescc #cybersecurity Copy Fail Explained [CVE-2026-31431]](https://i.ytimg.com/vi/wQ914geKOcw/mqdefault.jpg)
![LAN Party [Day 23 - Advent of Code 2024 - Python]
Im given a list of connections each showing two connected computers. Ill first need to identify triplets, three computers where each is connected to the other two. In part two, Ill use recusion to find the largest fully connected group.
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:28] Input review
[02:00] Parsing input into pairs
[02:34] Creating dict of connections
[03:18] Looping over nodes to find triples
[05:30] Filtering for starts with t
[06:10] Solving part 1
[06:21] Part 2 challenge
[06:53] Recursive function to find groups
[10:12] Checking all nodes
[10:50] Solving part 2
[11:13] Conclusion
#adventofcode #python LAN Party [Day 23 - Advent of Code 2024 - Python]](https://i.ytimg.com/vi/x-CMuXDvMVY/mqdefault.jpg)
![Day 21: Step Counter [AOC2023 Python]
For Advent of Code 2023 Day 21, Im given a grid of spaces and rocks, and asked to find how many spaces an elf could stop in after exactly 64 steps. Ill solve this with a queue and a breadth first fill. In part two, the number of steps changes to 26,501,365, which means I cant walk it anymore, but rather have to think about the diffent kinds of grids that might be encountered, how many possible stopping points there are, and how many of each type.
Code 2023 AOC: https://gitlab.com/0xdf/aoc2023
Challenge Link: https://adventofcode.com/2023/day/121
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Part 1 description
[01:15] genday / input analysis
[02:04] Format grid, find start
[03:58] All steps via queue
[09:12] Debugging, fix mistake
[09:50] Solve part 1
[10:11] Part 2 description
[11:06] Refactor part 1 into function
[12:35] Input analysis again
[14:20] Complete grid analysis
[16:43] Introducing toy example
[19:06] Counting corners
[21:34] Counting interior
[24:16] Outer edges
[28:54] Inner edges
[30:38] Solve part 2
[30:42] Summary
#adventofcode #python Day 21: Step Counter [AOC2023 Python]](https://i.ytimg.com/vi/xD0g4BtUnP0/mqdefault.jpg)
![Exploring Docker Registry Auth [HackTheBox RegistryTwo]
Im looking at a docker registry server and an auth server. Ill show how I can manually request a token from the auth server, and then use Wireshark and Burp to look at how docker does that for me when running docker pull.
HackTheBox RegistryTwo: https://www.hackthebox.com/machines/registrytwo
RegistryTwo Blog Post: https://0xdf.gitlab.io/2024/02/03/htb-registrytwo.html#docker-registry tcp-5000 5001
DockerRegistryGrabber: https://github.com/Syzik/DockerRegistryGrabber
Foxyproxy / Burp Video: https://www.youtube.com/watch?v=iTm33Miymdg
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[01:05] Web browser registry interactions
[03:42] curl manual registry pulls
[06:26] Bit about TLS certificates
[06:51] Using docker to pull
[07:43] Wireshark analysis
[09:05] Creating Burp proxies
[11:04] Request analysis in Burp
[12:16] Modifying 401 experiment
[14:22] Conclusion
#pentest #ctf #bugbounty #docker #docker-registry Exploring Docker Registry Auth [HackTheBox RegistryTwo]](https://i.ytimg.com/vi/xqYQ76u8bM0/mqdefault.jpg)
![Day 1 - No time for a Taxicab [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 1 challenge, No Time For a Taxicab, involves following directions around a grid, and then calculating the distance back to the starting point.
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 match statement: https://peps.python.org/pep-0622/
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:13] Challenge Part 1
[01:28] genday.sh script
[01:58] Part 1 tests
[03:39] parse function
[07:31] Validating pytest, solving part 1
[08:12] Part 2 tests
[09:15] Refeactor to create step function
[10:35] part2 function
[13:01] Debugging reuse of step as a function and variable
[13:52] Updating step to return visited
[15:00] Debugging forgetting to add positions to visited
[16:38] Fixed issue, solving part 2
[17:06] Conclusion
#ctf #adventofcode #revivalofcode #python Day 1 - No time for a Taxicab [Revival of Code 2023 - Advent of Code 2016]](https://i.ytimg.com/vi/yCEy-tIV7W4/mqdefault.jpg)
![Python Directory Traversal Exploit [Yummy - HackTheBox]
In Yummy from HackTheBox, Ive got a file read vulnerability that takes two requests to trigger, as well as a bit of setup with the website. Ill write a shell that takes a filename, returns the contents of the file (or the reason it cant), and then reprompts using the Python Cmd package and requests. To get requests to do the directory traversal correctly, Ill use the prepare mechanism.
Full Yummy Solution: https://0xdf.gitlab.io/2025/02/22/htb-yummy.html
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[01:00] Vulnerability demo
[04:18] Intial CMD shell
[07:25] init
[08:26] login function
[10:20] Get valid booking ID
[16:20] Default command
[19:38] Preparing request for traversal
[24:09] Update to handle any file
[24:55] Checks for access denied and file not found
[27:01] Adding file download
[31:45] Conclusion
#HackTheBox #ctf #xss Python Directory Traversal Exploit [Yummy - HackTheBox]](https://i.ytimg.com/vi/yKtFy0WISaA/mqdefault.jpg)
![Addition [HackTheBox - Coding Challenge]
Addition is another very easy challenge which Ill solve in Python. I read in two lines, each with a number. Ill add them, and return the value. Going a bit deeper, Ill use a list comprehension to solve this in one line.
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:30] Exploring input
[01:29] Adding numbers
[01:48] Refactors
[02:14] List comprehension one-liner solution
#python Addition [HackTheBox - Coding Challenge]](https://i.ytimg.com/vi/yw7ePwQ-UaQ/mqdefault.jpg)
![Binary Analysis of notes [HackTheBox Gofer]
In the Gofer box from HackTheBox, the final exploitation step is to exploit a notes binary. I was originally able to solve it just by playing with it, without static reverse engineering in Ghidra or other tools like that. In this video, Ill give a quick overview of how the binary works and how I exploited it, and then open it in Ghidra to see what was happening under the hood.
HackTheBox Gofer: https://www.hackthebox.com/machines/gofer
Gofer Blog Post: https://0xdf.gitlab.io/2023/10/28/htb-gofer.html
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:54] Overview of notes application
[04:10] Getting tar command with strings
[04:45] Import to Ghidra
[05:56] Making font bigger
[06:35] Working through main decompile
[07:31] Option 1 - create user
[09:30] Option 2 - print user data
[09:51] Option 3 - delete user
[10:04] Option 4 - new note
[10:51] Options 5-7
[11:15] Option 8 - backup
[11:32] Walking through the vulnerability
[13:45] Conclusion
#pentest #ctf #bugbounty Binary Analysis of notes [HackTheBox Gofer]](https://i.ytimg.com/vi/z4KZCwbTNy0/mqdefault.jpg)
![Configuring VSCode to Debug PyTest
While doing an Advent of Code challenge, I found myself really wanting to debug PyTest. This video shows how I set that up.
VSCode Variables: https://code.visualstudio.com/docs/editor/variables-reference
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:15] VSCode debug python script
[01:01] Doesnt run PyTest tests
[01:30] Looking at launch.json
[02:05] Adding PyTest configuration
[02:51] Hardcoding directory
[04:25] Using variables to get current directory
[05:01] Debugging PyTests
#ctf #adventofcode #revivalofcode #python Configuring VSCode to Debug PyTest](https://i.ytimg.com/vi/zL2YTdIj3R8/mqdefault.jpg)
![Exploring a Flask App with SSTI [HackTheBox Sandworm]
In the Sandworm box from HackTheBox, the foothold involves exploiting a server-side template injection (SSTI) vulnerability in a Python Flask application. In this video, Ill come back with my root shell and look at how the application is setup, and show why it is vulnerable to SSTI.
HackTheBox Sandworm: https://www.hackthebox.com/machines/sandworm
Sandworm Blog Post: https://0xdf.gitlab.io/2023/11/18/htb-sandworm.html
Flask factories: https://flask.palletsprojects.com/en/2.3.x/patterns/appfactories/
python-gnupg: https://gnupg.readthedocs.io/en/latest/
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[01:17] Overview of webpage
[02:15] Demonstrate SSTI
[02:52] Looking at Firejail / Flask service
[03:50] Flask run
[04:50] App Factories
[06:15] init .py
[07:00] app.py overview
[08:28] Route with POST
[09:14] Verify routes
[11:14] Flask hello world
[12:09] Adding user input
[13:06] Use template
[14:45] SSTI payload fail
[15:09] Switch to render_template_string
[16:05] Fixing typo
[16:24] Successful exploitation
[17:20] Conclusion
#pentest #ctf #bugbounty #python #ssti Exploring a Flask App with SSTI [HackTheBox Sandworm]](https://i.ytimg.com/vi/zfp7udPF8fs/mqdefault.jpg)