Skip to content

Solution of the Ethernaut problems [ CTF ] -- a platform where you can woek on smart contract security issues and can solid your fundamentals

Notifications You must be signed in to change notification settings

aditysoni/Ethernut_challenges

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fallback_Challenge

solution [how to think] 1.First find where the owner variable is set 2 . to set the owner = msg.sender ; we have to call the contribute function 3 . after calling and sending some value greater than 0 we will have to call receive function 2. And , for that we have to do low level transaction , after successful execution of the transaction 5 .we will be the owner and then we will call the withdraw function and will withdraw all the ether

Fallout_challenge

Second ethernut challenge in which you have to change the owner to yourself . In solidity 0.6 we have to declare constructor by function _name_of_the_contract () {} And here in the contract there is a function which is fal1out instead of fallout. So we create an interface and load the interface at the contract address and call this fal1out. And we called the function which evenutally make us the owner .

Coin_Flip_Challenge

Third ethurnut challenge , where we have to guess the outcome correctly for 10 times in a row .

Telephone_Challenge

We have to change the owner of the TELEPHONE contract . we will deploy HACK contract , in which we will call the change_owner function . msg.sender and tx.origin are different , and so the owner will change to us.

Token_challenge

Fifth ethernut challenge. In this challenge we have to increase the amount of the tokens in the ethernut contract address. Prcedure ---- We deploy a contract by using our wallet and simply transfer the token to the challenge contract by calling the transfer function . Hence increasing the token amount from 20 ethers to 21 ethers , which we can see by calling balance function .

About

Solution of the Ethernaut problems [ CTF ] -- a platform where you can woek on smart contract security issues and can solid your fundamentals

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published