How to Solve the Ethernaut Game's Level 5: Tokenby@kamilpolak
2,511 reads

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

tldt arrow
Read on Terminal ReaderPrint this storyRead this story w/o Javascript

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

@kamilpolak

Kamil Polak

About @kamilpolak
LEARN MORE ABOUT @KAMILPOLAK'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa