Ethernaut Puzzle 00 Hello Ethernaut!

This week I started to actively work on Ethernaut which includes several solidity puzzles. Till 11st Sep, I have solved 16 puzzles and I will provide my solutions in my blogs one by one. The experience of resolving those puzzles is quite enjoyable and I even recalled that several years ago, during university, I tried hard to solve a codeforces problem at 2:00 am in my dormitory.

00 Hello Ethernaut!

The first puzzle is mainly to let you set up the environment, such as to intall a MetaMask and try to get some information from the contract.

How does Ethernaut plaform check you have solved the problem? First of all, you need to deploy a smart contract in the test net and after you operate sth on this smart contract, the state of this contract will change somewhere and Ethernaut will check the state to see if it meets their expectations.

The problem itself is to let you find the password step by step.

But if you type “contract” in the console, it will appear all the properties and all the functions of this contract. And you will find there is a string called password inside this contract.

Type the await contract.password()in the console then await contract.authenticate('ethernaut0'). You would pass the first problem.