04.puzzles_4
2023-07-27 13:37:26 # 15.EVM Puzzles

puzzles_4

异或的结果为a然后可以跳转完成。固定的题目长度为0x0c,也就是1100,需要输入CALLVALUE=X,需要: 0x0c ^ X = a,也就是1100 ^ X = 1010,因此X=0110即6

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

00 34 CALLVALUE
01 38 CODESIZE
02 18 XOR
03 56 JUMP
04 FD REVERT
05 FD REVERT
06 FD REVERT
07 FD REVERT
08 FD REVERT
09 FD REVERT
0A 5B JUMPDEST
0B 00 STOP

? Enter the value to send: 6

Puzzle solved!