ctfwriteup.com
Search
K

Puzzle 3

CALLDATASIZE

Puzzle

############
# Puzzle 3 #
############
00 36 CALLDATASIZE
01 56 JUMP
02 FD REVERT
03 FD REVERT
04 5B JUMPDEST
05 00 STOP
? Enter the calldata:

Solution

CALLDATASIZE pushes the size of calldata onto the stack, and JUMP will jump to that address.
The objective is to jump to address 0x04, so the size of our calldata should be 4. For example, you can use 0xdeadbeef.
Last modified 10mo ago