01.puzzles_1
2023-07-27 13:37:52 # 15.EVM Puzzles

puzzles_1

考察JUMP,JUMP读取栈顶的第一个元素的值,然后跳转该值的位置,并且该位置必须是JUMPDEST。因此我们设置CALLVALUE=8即可跳转,执行完成

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
############
# Puzzle 1 #
############

00 34 CALLVALUE
01 56 JUMP
02 FD REVERT
03 FD REVERT
04 FD REVERT
05 FD REVERT
06 FD REVERT
07 FD REVERT
08 5B JUMPDEST
09 00 STOP

? Enter the value to send: 8

Puzzle solved!