The Ethernaut is a Web3/Solidity based wargame inspired on overthewire.org. Here’s the solution to the Level 2 Fallout.

The initial info does not reveal much:

Claim ownership of the contract below to complete this level.Things that might help:
- Solidity Remix IDE

The only way to change the state of the owner property, is the contruct itself. But is it really a contructor?

As it turns out, above function is not a constructor, but a function (public no less) with a 1 (one) instead of an l in the name. Therefore, anyone can call it at anytime:

await contract.Fal1out({value:1})
await contract.collectAllocations();

After two above transaction get mined, I complete the challenge.

--

--