Ethernaut CTF - Magic Number (Level 18)
Get the free 30-day AI Mastery series 💌: https://insights.gradientlabs.co/ Work with me 💪: https://offerings.gradientlabs.co/ Next up! Level 18 - Magic Number In this CTF series, we’re going to learn more about the practical side of smart contract auditing and security. If you’re interested in more/similar content, checkout my channel or website below. My digital dumping ground - dylandavis.net Additional Resources Ethernaut CTF - https://ethernaut.openzeppelin.com/ Foundry Solution (Too steep for me) - https://github.com/ciaranmcveigh5/ethernaut-x-foundry 0xSage (solution) - https://medium.com/coinmonks/ethernaut-lvl-19-magicnumber-walkthrough-how-to-deploy-contracts-using-raw-assembly-opcodes-c50edb0f71a2 Opcodes simply explained - https://medium.com/@blockchain101/solidity-bytecode-and-opcode-basics-672e9b1a88c2 Deconstructing Smart Contract (blog series) - https://blog.openzeppelin.com/deconstructing-a-solidity-contract-part-i-introduction-832efd2d7737/ Amazing bytecode diagram - https://gists.rawgit.com/ajsantander/23c032ec7a722890feed94d93dff574a/raw/a453b28077e9669d5b51f2dc6d93b539a76834b8/BasicToken.svg R1oga (solution) - https://listed.to/@r1oga/13786/ethernaut-levels-16-to-18 Coder-question (solution) - https://coder-question.com/cq-blog/525392 Opcode chart - https://github.com/crytic/evm-opcodes Free Memory Pointer - https://docs.soliditylang.org/en/v0.4.24/assembly.html#conventions-in-solidity Stack Machine (wiki) - https://en.wikipedia.org/wiki/Stack_machine#Design The Magnum Look - https://youtu.be/gx9O6q0pDAU Timeline 00:00 - Intro to challenge 02:19 - solution resources 08:08 - Opcode contract diagram 10:22 - code review (target) 11:40 - Grooking the solution (1) 13:31 - Grooking the solution (2) 15:15 - Notes review (bytecode/opcode intro) 17:50 - Notes review (free memory pointer) 20:50 - Notes review (stack machine) 26:05 - Notes review (runtime code) 31:20 - Notes review (creation code) 38:05 - Solving challenge 41:33 - Outro
Download
0 formatsNo download links available.