Uploaded December 2024 | Updated November 2026, 3 hours ago
In this video I'll look at sorting and combining two lists parsed from columns of data.
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] Challenge introduction
[00:45] Data overview
[01:18] Parsing input into two lists
[04:30] Solving part 1
[05:59] Part 2 challenge
[06:29] Solving part 2
[07:35] Running on example and puzzle input
#adventofcode #python
In this video I'll look at sorting and combining two lists parsed from columns of data.
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] Challenge introduction
[00:45] Data overview
[01:18] Parsing input into two lists
[04:30] Solving part 1
[05:59] Part 2 challenge
[06:29] Solving part 2
[07:35] Running on example and puzzle input
#adventofcode #python
![Plutonian Pebbles [Day 11 - Advent of Code 2024 - Python]
Im given a list of numbers. At each iteration (blink), a stone either splits in two or has its value change. This leads to expoential growth in the length of the list. In part 1, I just follow the rules and track the list. In part two, Ill use a recursive cached function to let the calculation happen in reasonable time.
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:30] Strategy
[02:19] Setup / data overview
[02:48] Parsing input
[03:20] Inefficient solution
[06:14] Solving part 1
[06:31] Part 2 challenge
[06:40] Showing inefficient solution too slow
[08:00] functools cache
[10:09] Recursive count func
[12:29] Summing all stones
[12:50] Fixing str/int bug
[14:03] Solving part 2
[14:24] Conclusion
#adventofcode #python Plutonian Pebbles [Day 11 - Advent of Code 2024 - Python]](https://i.ytimg.com/vi/JxIAqiUJraE/mqdefault.jpg)
![State of 0xdf (2026)
Lets chat about the state of 0xdf content. Well go into the blog posts from 2025, Google Analytics, and YouTube analytics.
Blog: https://0xdf.gitlab.io
Cheatsheets: https://0xdf.gitlab.io/cheatsheets/
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[01:06] Blog post stats
[04:07] Google Analytics from website
[09:18] YouTube Analytics
[17:58] Personal Update State of 0xdf (2026)](https://i.ytimg.com/vi/KCo69_D8d2E/mqdefault.jpg)
![Day 19: Aplenty [AOC2023 Python]
For Advent of Code 2023 Day 19, I get a series of rules that apply to parts based on various features of the part. The rules show what stage to pass the part to next, before each part is eventually accepted or rejected. In part 1, I process a list of a few hundred parts. In part 2, they say that each of a parts four attributes can have values 1 - 4000. The question is how many possible parts can be accepted. Ill need to send ranges through a workflow function to get the result. Ill make heavy use of recursion in both parts.
Code 2023 AOC: https://gitlab.com/0xdf/aoc2023
Challenge Link: https://adventofcode.com/2023/day/19
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Oops
[00:52] Part 1 description
[02:33] Input analysis
[04:10] Getting workflows and parts
[04:54] Parsing workflows
[09:20] Testing workflow parsing
[10:23] Looping over parts
[12:30] apply_workflows
[16:09] Solve part 1
[16:28] Part 2 description
[17:13] New setup working over ranges
[18:42] apply_workflow_ranges
[28:29] Solve part 2
[28:56] Summary
#adventofcode #python Day 19: Aplenty [AOC2023 Python]](https://i.ytimg.com/vi/KF7jtMocf40/mqdefault.jpg)
![Day 3: Gear Ratios [AOC2023 Python]
For Advent of Code 2023 Day3, I get a grid with digits, symbols, and empty (dots). Ill have to find numbers that are adjacent to symbols, and sum them up. In part 2, I have to find * with two numbers and get the sum of their products.
Code 2023 AOC: https://gitlab.com/0xdf/aoc2023
Challenge Link: https://adventofcode.com/2023/day/3
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
#adventofcode #python
[00:00] Part 1 description
[01:00] Part 1
[13:32] Part 2 description
[14:03] Part 2
[21:25] Summary Day 3: Gear Ratios [AOC2023 Python]](https://i.ytimg.com/vi/LLfOiUf8pEU/mqdefault.jpg)
![Creating VMs with Vagrant
I got to playing with Vagrant to create VirtualBox VMs. In this video well talk about how to install, creating our first VM, configuring it to change the CPUs and display driver, talk about plugins for setting disk size, managing VBox tools, and rebooting. Ill install the GUI package into the non-GUI base image to get a full functioning VM.
Install Vagrant: https://developer.hashicorp.com/vagrant/downloads
Vagrant Boxes: https://app.vagrantup.com/boxes/search
Vagrant Base Box Criteria: https://developer.hashicorp.com/vagrant/docs/boxes/base
IppSecs Ansible Video: https://www.youtube.com/watch?v=2y68gluYTcc
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[01:12] Setup and installs
[03:00] Finding base image
[04:11] What makes a base box
[04:47] First Vagrantfile
[05:33] Building first VM
[06:40] Looking at first VM
[07:52] Updated VM config
[12:45] Building configured VM
[13:20] Reviewing updated build
[14:42] Vagrant provisioning script
[15:52] Adding script to install GUI / Ansible
[16:41] Building with install script
[18:00] Rebooting to get GUI, reboot plugin
[18:45] Looking at VM, next steps
#pentest #ctf #vagrant #virtualbox Creating VMs with Vagrant](https://i.ytimg.com/vi/LNInq9J3uM0/mqdefault.jpg)
![Analysis of CVE-2023-37474 in CopyParty
I recently came across CVE-2023-37474, a directory traversal vulnerability in CopyParty. In this video, Ill take the NVD description and a Snyk POC for the vulnerability and find the vulnerable code using grep.app. Then Ill understand how the code works, why it was a bug, and demo the vulnerable version on my host.
NVD CVE-2023037474: https://nvd.nist.gov/vuln/detail/CVE-2023-37474
Snyk POC: https://security.snyk.io/vuln/SNYK-PYTHON-COPYPARTY-5777718
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:49] NVD page
[01:14] Snyk POC
[01:37] Strategy
[02:00] Finding vulnerable code
[03:45] Python os.path.join demo
[05:20] Installing vulnerable version
[06:17] Running and exploiting vulnerable version
[08:28] Upgrading to recent version
[09:58] Conclusion
#copyparty #python #directory-traversal Analysis of CVE-2023-37474 in CopyParty](https://i.ytimg.com/vi/LVDBpON4_IQ/mqdefault.jpg)
![Day 6: Wait For It [AOC2023 Python]
For Advent of Code 2023 Day6, Im given a series of times and distances. Each pair represents a race, where the time is the amount of time to solve it, and the distance is the record distance for that race. I am able to split the time between reving the engine and going. The longer I rev, the fast I move for the remaining time. Ill use quadratic math to solve the challenge. At the end, Ill show that brute force would have also worked in reasonable time.
Code 2023 AOC: https://gitlab.com/0xdf/aoc2023
Challenge Link: https://adventofcode.com/2023/day/6
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
#adventofcode #python
[00:00] Part 1 description
[01:40] Input analysis
[02:32] Parsing input
[04:54] Writing part 1
[08:45] Debugging
[10:46] Solving part 1
[10:57] Part 2 description
[11:32] Solve part 2
[12:55] Brute force solution Day 6: Wait For It [AOC2023 Python]](https://i.ytimg.com/vi/LoTMhND-xBE/mqdefault.jpg)
![Day 19 - An Elephant Named Joseph [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 19 challenge, An Elephant Named Joseph, starts with a classic math problem, The Josephus Problem. Ill include a link to the fantastic Numberphile video about this problem, and solve it very easily. The second part is a twist on the original, but still solvable by looking for patterns.
The Josephus Problem - Numberphile: https://www.youtube.com/watch?v=uCsD3ZGzMgE
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:37] Challenge part 1
[01:25] Josephus problem background
[03:16] genday / input
[03:36] Test for part 1
[04:05] Part 1 solve
[05:29] Binary solution trick
[07:08] Challenge part 2
[07:52] Test for part 2
[08:12] Slow solution
[10:33] Simulating slow solutions
[11:29] Looking at patterns
[15:30] Building solution in simulation
[17:11] Converting simulation to part 2 solution
[18:05] Conclusion
#ctf #adventofcode #revivalofcode #python Day 19 - An Elephant Named Joseph [Revival of Code 2023 - Advent of Code 2016]](https://i.ytimg.com/vi/M-V_gvJomzU/mqdefault.jpg)
![Linux 101 [Sans Holiday Hack 2023]
The Linux 101 terminal in the 2023 Holiday Hack Challenge is a great chance to learn Linux command line tricks and techniques.
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:30] Q1 - Terminal Overview
[00:47] Q2 - ls
[00:56] Q3 - cat
[01:20] Q4 - rm
[01:38] Q5 - pwd
[01:46] Q6 - ls -a
[02:06] Q7 - history
[02:14] Q8 - env
[02:25] grep and pipe tangent
[02:59] Q9 - cd
[03:21] Q10 - grep
[04:04] Q11 - chmod
[05:53] Q12 - mv
[06:14] Q13 - ln -s
[06:47] Q14 - cp
[07:13] Q15 - echo / redirection
[07:43] Q16 - find
[08:47] Q17 - find -user
[09:06] Q18 - find -size
[09:39] Q19 - ps
[10:15] Q20 - netstat
[11:04] Q21 - curl
[11:35] Q22 - kill
[11:52] Conclusion
#adventofcode #python Linux 101 [Sans Holiday Hack 2023]](https://i.ytimg.com/vi/MOI7hLLMyK4/mqdefault.jpg)
![Reassembling Werkzeugs Pin - Getting RCE in HackTheBox Agile [Part 2]
After showing how to enumerate and recover the pin in a HelloWorld app for part 1, this video will look at applying that to a HackTheBox machine, Agile, to recover the pin and get remote code execution.
Part 1: https://www.youtube.com/watch?v=6BWaea0nfE0
Agile Blog Post: https://0xdf.gitlab.io/2023/08/05/htb-agile.html
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:50] Look at application file read and debug
[02:28] HackTricks Werkzeug pin script
[03:35] username
[04:15] Full path to flask
[04:35] MAC / getnode
[06:50] machine_id
[08:25] Comments about hash function
[09:42] Running and failing
[10:00] Recreating app, getting command line
[12:26] Getting wsgi.py
[13:15] Getting and simplifying app.py
[17:08] Running simplified app
[17:18] Adding prints to Werkzeug debug
[19:15] Updating pin.py, getting RCE
[19:40] Conclusion
#pentest #ctf #bugbounty Reassembling Werkzeugs Pin - Getting RCE in HackTheBox Agile [Part 2]](https://i.ytimg.com/vi/MVItEDBBcgg/mqdefault.jpg)
![Playing with a (CTF) Smart Contract [Hackvent 2022 - Day 6]
The day 6 challenge in Hackvent 2022 is to read data from a smart contract. In this video, Ill go over how to use Metamask and Remix to interact with smart contracts, and then switch to Python / web3 to read data from the blockchain even though its private.
Hackvent 2022 writeup: https://0xdf.gitlab.io/hackvent2022/easy
Metamask: https://metamask.io/
Remix: https://remix.ethereum.org/
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
#hackvent
[00:00] Introduction
[00:26] Challenge description
[01:05] Installing / configuring Metamask
[02:34] Getting contract into Remix
[03:18] Setting up Remix environment
[04:36] Deploying / interactiving with an instance of the contract
[05:50] Interacting with given contract
[06:57] Analysis of contract source
[07:43] Description of the vulnerability
[08:09] Interacting with the contract in Python / web3
[11:25] Reading raw data, including flag
[12:32] Summary Playing with a (CTF) Smart Contract [Hackvent 2022 - Day 6]](https://i.ytimg.com/vi/MpCd9hZu8bE/mqdefault.jpg)