Beginners Track Capture the Flag CTF Intro
summary
Hands-on CTF with 12 progressively harder challenges deployed on Optimism where each solved level mints an SVG NFT flag; workshop shows local testing with Hardhat/Anvil and Scaffold-Ethereum extension, then redeploying to Optimism and successfully capturing live flags. Demonstrations include solving challenge 1 by calling registerMe via UI, scripts or Etherscan, and solving challenge 2 by deploying an intermediate contract to bypass a msg.sender vs tx.origin check. Notes that a few teams finished very quickly at DEFCON (30 minutes) while only five or six completed all levels.
AI-written summary · about
chapters (37)
- 0:00Introduction to CTF concept and history
- 0:48How CTF games work in blockchain context
- 1:19Why breaking things leads to deeper understanding
- 1:49Popular Ethereum CTF examples
- 2:30Defcon CTF experience and results
- 2:59Introducing ctfbillgill.com challenge platform
- 3:35How flag NFTs work with SVG images
- 4:15Scaffold-Ethereum extension setup
- 4:47Website walkthrough and first challenge
- 5:21Connecting wallet and checking flags
- 5:53Installing scaffold-eth CTF extension
- 6:36Running local blockchain instance
- 7:17Deploying challenge contracts locally
- 7:52Examining challenge 1 contract code
- 8:29Understanding the flag minting mechanism
- 9:07Debug contract UI demonstration
- 9:39Solving challenge 1 through UI
- 10:17Funding account and completing challenge
- 10:52Alternative methods to interact with contracts
- 11:28Using AI Ninja contract interface
- 12:07Solving via script with private key
- 13:11Testing solution on local network
- 13:57Running script on Optimism mainnet
- 14:46Capturing first flag on live network
- 15:43Introducing challenge 2 requirements
- 16:18Understanding msg.sender vs tx.origin
- 16:54Solution approach using intermediate contract
- 17:50Writing solution contract code
- 18:42Deploying solution contract locally
- 19:38Testing solution contract interaction
- 20:24Deploying solution to Optimism
- 21:23Switching frontend to Optimism network
- 22:08Capturing second flag on mainnet
- 22:58Recommended next steps for learners
- 23:33Importance of hands-on practice
- 24:23Estimated completion times for challenges
- 25:35Demo of AI Ninja contract interface tool
related talks
46mCapture the Flag for Developers
28mCapture the Flag Challenge Review and Winners' Awards
44mCapture the Flag Wrap Up & Summary
23mGrowing Your Skillset with Capture the Flag
38mCapture the Flag Challenge Review and Winners' Awards
41mGamifying Developer Education with CTFs
47mGaining experience through CTFs
23mCapture The Flag Summary + Wrap UpVirtual
