Uploaded December 2024 | Updated November 2026, 3 hours ago
A grid challenge where I get a map of antenna each with a frequency. I'll group them by freqency, and find "antinodes" as defined in each part. In part 1, each pair of antenna generate two antinodes one on each side of the pair. In part 2, I extend this to look along the line between each pair as long as I'm on the given initial grid.
2024 AOC repo: gitlab.com/0xdf/aoc2024
2024 AOC Intro vide: youtube.com/watch?v=4XKZZrhhiQE
VSCode Debug video: youtube.com/watch?v=cNhtk2Ob4B8
☕ Buy Me A Coffee: buymeacoffee.com/0xdf
[00:00] Part1 introduction
[01:50] Setup / data overview
[02:23] Parsing grid
[04:52] Looping over antenna pairs
[08:56] Filtering for in range
[09:37] Solving part 1
[10:09] Part 2 challenge
[10:40] Calculating part 2
[12:53] Solving part 2
[13:44] Conclusion
[13:52] Fixing len/sum issue
#adventofcode #python
A grid challenge where I get a map of antenna each with a frequency. I'll group them by freqency, and find "antinodes" as defined in each part. In part 1, each pair of antenna generate two antinodes one on each side of the pair. In part 2, I extend this to look along the line between each pair as long as I'm on the given initial grid.
2024 AOC repo: gitlab.com/0xdf/aoc2024
2024 AOC Intro vide: youtube.com/watch?v=4XKZZrhhiQE
VSCode Debug video: youtube.com/watch?v=cNhtk2Ob4B8
☕ Buy Me A Coffee: buymeacoffee.com/0xdf
[00:00] Part1 introduction
[01:50] Setup / data overview
[02:23] Parsing grid
[04:52] Looping over antenna pairs
[08:56] Filtering for in range
[09:37] Solving part 1
[10:09] Part 2 challenge
[10:40] Calculating part 2
[12:53] Solving part 2
[13:44] Conclusion
[13:52] Fixing len/sum issue
#adventofcode #python
![Antipattern [0xff: One Last Address]
The HTB Content team made me a goodbye CTF consisting of four challenges. In this video, Ill solve Antipattern, a fullpwn machine that replicates my website as well as a bunch of things that led to box submissions being rejected from HTB.
bash reverse shell:
shell upgrade:
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:59] Challenge introduction
[01:32] nmap
[05:30] Website enumeration / Easter eggs
[11:09] /search
[13:00] SQLI POC
[14:12] Manual union injection
[14:39] sqlmap
[16:35] File read enumeration
[21:42] Manual file read / write
[24:00] Webshell
[29:25] System enumeration
[31:05] Run moreclicks
[32:20] Loading moreclicks into Ghidra
[34:10] RE moreclicks
[38:50] Command injection
[41:10] Beyond Root: PHP SQLI
[43:20] Beyond Root: MariaDB
[47:08] Conclusion
#ctf #nmap #sqli #ghidra #setuid Antipattern [0xff: One Last Address]](https://i.ytimg.com/vi/YaZkxlvl6oM/mqdefault.jpg)
![Day 12 - Leonardos Monorail [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 12 challenge, Leonardos Monorail, is so much easier than day 12! Ill create a simple computer with four instructions and four integer registers.
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:13] Challenge Part 1
[01:17] genday.sh / input
[01:45] Initial Computer test
[04:10] Creating Computer class
[05:39] run function for Computer
[09:42] Tests for run and get_value
[11:13] Fixing typos
[11:48] get_value function for Computer
[12:36] Fixing typos
[12:55] Tests passing, updating to solve part 1
[14:04] Part 2 challenge
[14:14] Updating to solve part 2
[14:49] Looking at input manually while part 2 runs
[15:58] Solving part 2
#ctf #adventofcode #revivalofcode #python Day 12 - Leonardos Monorail [Revival of Code 2023 - Advent of Code 2016]](https://i.ytimg.com/vi/Z-qDyL-vyNA/mqdefault.jpg)
![Hacking Luggage Lock [Sans Holiday Hack 2023]
In the Luggage Lock challenge, Im asked to open a combination luggage lock using real world techniques. In this video, Ill hack the interface for the challenge to show two ways to solve it. First Ill figure out the combo from the websocket messages from the server. Then Ill show how to brute force the combo from the dev tools console sending all 10,000 possibilities in less than a minute.
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:48] Identifying websockets
[01:37] Finding what triggers message
[02:14] Get combo from setup message
[04:59] Quick JS analysis
[05:33] Sending websocket messages
[06:14] Asking ChatGPT for JavaScript
[07:10] Brute forcing pin from debug console
[08:38] Summary
#adventofcode #python Hacking Luggage Lock [Sans Holiday Hack 2023]](https://i.ytimg.com/vi/ZLSUMIYkzJI/mqdefault.jpg)
![Code Chronicle [Day 25 - Advent of Code 2024 - Python]
Im given visual blocks showing both locks and keys. Ill need to process all of them and then test each to see how many pairs of lock / key exist where the key fits into the lock.
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:57] Input review
[02:36] Processing input to blocks
[08:10] Brute-forcing locks and keys
[09:24] Solving part 1 example
[09:47] Fixing read in bug
[10:40] Solving part 1
[11:06] Conclusion
#adventofcode #python Code Chronicle [Day 25 - Advent of Code 2024 - Python]](https://i.ytimg.com/vi/ZP7uCyBG32c/mqdefault.jpg)
![Day 21 - Scrambled Letters and Hash [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 21 challenge, Scrambled Letters and Hash, involves processing a bunch of instructions that scramble a string, and then doing it in reverse.
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:20] Challenge part 1
[01:01] genday.sh / input
[01:35] Creating Password class with stub functions
[06:35] Writing tests for various methods
[09:06] Test for full part 1 example
[11:10] init function
[11:45] swap_position
[12:40] swap_letters
[13:20] rotate
[14:21] rotate_by_letter
[15:40] reverse
[16:45] move
[17:51] scramble
[22:40] Debugging typos
[28:32] Passing tests
[29:20] Debugging typos
[30:24] Submitting part 1
[30:39] Challenge part 2
[30:53] Stubbing unscramble
[31:29] Part 2 tests
[32:18] unscrabmle function
[35:10] Debugging typos
[36:10] Fixing move function
[36:28] Solving part 2
[36:46] Conclusion
#ctf #adventofcode #revivalofcode #python Day 21 - Scrambled Letters and Hash [Revival of Code 2023 - Advent of Code 2016]](https://i.ytimg.com/vi/Zf1km9NfFTo/mqdefault.jpg)
![Red-Nosed Reports [Day 2 - Advent of Code 2024 - Python]
Parsing lines of numbers to check for strictly increasing or decreasing, and making sure the change isnt too great. In part 2, the same test but allow dropping a number from the list.
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] Challenge introduction
[01:06] Setup / data overview
[01:42] Function to validate report
[07:34] Counting good reports
[08:07] Solving part 1
[08:22] Part 2 challenge
[08:48] Refactor Part 1
[10:06] Function to check with tolerance
[11:51] Counting good reports 2
[12:16] Solving part 2
[13:10] Conclusion
#adventofcode #python Red-Nosed Reports [Day 2 - Advent of Code 2024 - Python]](https://i.ytimg.com/vi/_2SqfIhfCMs/mqdefault.jpg)
![Decrypting AsyncRAT Configuration Values with CyberChef
Ive got a malware sample that has a bunch of configuration values that are decrypted using AES, but not in the standard way that CyberChef would do it. Ill show how the program is setup, and then pivot to CyberChef using many operations, including Register, Derive PBKDF2 key, and AES Decrypt to get the IV and ciphertext, generate the key, and decrypt the value. This malware comes from the Einladen Sherlock challenge from HackTheBox.
Final recipe: https://gchq.github.io/CyberChef/#recipe=From_Base64(A-Za-z0-9%2B/%3D,true,false)To_Hex(None,0)Regular_expression(User%20defined,%5E.%7B64%7D(.*),true,true,false,false,false,false,List%20capture%20groups)Register(%5E(.%7B32%7D),true,false,false)Register(%5E.%7B32%7D(.*),true,false,false)Derive_PBKDF2_key(%7Boption:Base64,string:d0cyOFJwZlBBSXBnalhEVFd2bEdiVHRkQnpybnRBeVM%3D%7D,256,50000,SHA1,%7Boption:Hex,string:bfeb1e56fbcd973bb219022430a57843003d5644d21e62b9d4f180e7e6c33941%7D)Register((%5B%5C%5Cs%5C%5CS%5D*),true,false,false)Find_/_Replace(%7Boption:Regex,string:%5E.*$%7D,$R1,true,false,true,false)AES_Decrypt(%7Boption:Hex,string:$R2%7D,%7Boption:Hex,string:$R0%7D,CBC,Hex,Raw,%7Boption:Hex,string:%7D,%7Boption:Hex,string:%7D)&input=K1BibzV4Wk1yaGpKSHgzSGhkWUpIa2RoK3EycHlnMXlZWmw5N2IwMjJqdlNWekhqcitvZS8zdlZidFV2RENvREFzVytqTUJMYnRLQmZmV3E4eDI3REZURFYzRUs5UkpuZDNTWTZPQkQ4R289
HackTheBox Einladen Blog post: https://0xdf.gitlab.io/2024/05/02/htb-sherlock-einladen.html
HackTheBox Einladen: https://app.hackthebox.com/sherlocks/Einladen
embee_research: https://www.youtube.com/@EmbeeResearch
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:55] Settings class (DotPeek)
[01:40] AES fails
[02:05] Dynamic decrypt
[03:00] Custom AES object
[05:00] Information summary
[05:26] Getting salt
[07:48] Saving IV and ciphertext
[10:28] Derive key
[11:51] Decrypting
[12:51] Decrypting other inputs
[13:06] Conclusion
#pentest #ctf #malware #reverseengineering #cyberchef #asyncrat #aes Decrypting AsyncRAT Configuration Values with CyberChef](https://i.ytimg.com/vi/_InXFxdGRg8/mqdefault.jpg)
![Day 13 - A Maze of Twisty Little Cubicles [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 13 challenge, A Maze of Twisty Little Cubicles, is another Breadth-First Search (like day 11), but much easier. Ill walk through a maze with walls defined by a bit of math based on the coordiante and a salt.
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:20] Challenge Part 1
[01:38] genday.sh / input
[01:55] is_valid_space tests
[05:42] is_valid_space function
[07:47] Adding a couple more tests for is_valid_space
[08:40] Test for BFS search
[10:10] Implementing BFS
[13:32] Passing tests, solving
[14:49] Part 2 challenge
[15:01] Updating to solve part 2
[16:08] Being dumb trying to clean up tests
[19:00] Actually fixing tests
[19:24] Solving part 2
#ctf #adventofcode #revivalofcode #python Day 13 - A Maze of Twisty Little Cubicles [Revival of Code 2023 - Advent of Code 2016]](https://i.ytimg.com/vi/_jY85Unhrlc/mqdefault.jpg)
![PCAP and Web Log Forensics [Sans Holiday Hack 2022 - Web Ring]
In these four challenges, Im given a PCAP and a web log and asked to identify various attacked. Ill 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: https://0xdf.gitlab.io/holidayhack2022/web
☕ Buy Me A Coffee: https://www.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 PCAP and Web Log Forensics [Sans Holiday Hack 2022 - Web Ring]](https://i.ytimg.com/vi/_pdT-uD_e84/mqdefault.jpg)
![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)