03.Guess the random number
2023-06-23 20:27:14
# 01.Capturetheether CTF
Guess the random number
topic
1 | pragma solidity ^0.4.21; |
analyses
the correct number is stored in the blockchain state (storage). we can get it off-chain.
solution
call ethers’s function getStorageAt()
to get the “answer” and then call guess(uint8)