05.puzzles_5
2023-07-27 13:32:50 # 15.EVM Puzzles

puzzles_5

将CALLVALUE相乘,然后看看和0x100是否相等,如果相等就设置为1否则是0。然后JUMPI如果是1则跳转到JUMPDEST。那么我们输入CALLVALUE=16即可相乘得到0x100完成题目

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

00 34 CALLVALUE
01 80 DUP1
02 02 MUL
03 610100 PUSH2 0100
06 14 EQ
07 600C PUSH1 0C
09 57 JUMPI
0A FD REVERT
0B FD REVERT
0C 5B JUMPDEST
0D 00 STOP
0E FD REVERT
0F FD REVERT

? Enter the value to send: 16

Puzzle solved!