Ethernaut OpenZeppelin Walkthrough 0: Hello Ethernaut
Welcome to my journey of exploring cybersecurity on the Ethereum blockchain! I’ll be detailing how I did it and what I learned along the way, and I’m so glad you are here learning too!!
The Ethernaut Game is a great exercise to practice your solidity skills and learn more about the vulnerabilities of smart contracts. If you get an error loading in, make sure you are switched to a test network, for this, I am using Goerli. When the time comes you can use Goerli Faucet to get test ether.
MetaMask set-up is standard (if you don’t know, Google it). To open the browser console on Mac: View > Developer > Developer Tools. I recommend playing around with the scenario to become familiar with the work environment.
Run the following in the console:
await contract.abi
The output is an array of the methods within this contract. We can use these methods to complete the level! Here I went ahead and went through the first three methods.
Running ‘await contract.infoNum()’ returns a value of 42, thus we go ahead and call info42() by typing ‘await contract.info42()’ into the console, like below.
We continue all the way down and once we run the authenticate method we can submit the instance and pass the level!
If you enjoyed this content, make sure to check the rest of it out and follow me on Twitter!
If you loved it, feel free to leave a tip @0x0a86f45d57994694A55ea0d9EDA397307309d802