paint-brush
How to Solve the Ethernaut Game's Level 5: Tokenby@kamilpolak
3,470 reads
3,470 reads

How to Solve the Ethernaut Game's Level 5: Token

by Kamil Polak3mJanuary 27th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In challenge 5 you are given 20 tokens to start with and you will beat the level if you somehow manage to get your hands on any additional tokens. To win this challenge we need to trigger an overflow or underflow. The overflow is a situation when an integer (signed integer) reaches its byte size. The next element added will return the first variable element. If you subtract 1 from a variable that is 0, it will change the value to 255. There are two options to use Openppelin to use all the mathematical operators.

Coin Mentioned

Mention Thumbnail
featured image - How to Solve the Ethernaut Game's Level 5: Token
Kamil Polak HackerNoon profile picture
Kamil Polak

Kamil Polak

@kamilpolak

I am a huge enthusiast of cryptocurrency and blockchain technology.

About @kamilpolak
LEARN MORE ABOUT @KAMILPOLAK'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Kamil Polak HackerNoon profile picture
Kamil Polak@kamilpolak
I am a huge enthusiast of cryptocurrency and blockchain technology.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Dixitaditya
Allella
Ktachibana
Moomoo
Learnrepo
Coffee-web
Yesyouken
Aidailydigest
Leftic