09.puzzles_9
2023-07-27 14:33:12 # 15.EVM Puzzles

puzzles_9

输入的calldata需要大于3。calldata的长度和VALLVALUE相乘的结果要等于8。那我们设置calldata长度为4,为0x00000000,CALLVALUE=2

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
############
# Puzzle 9 #
############

00 36 CALLDATASIZE
01 6003 PUSH1 03
03 10 LT
04 6009 PUSH1 09
06 57 JUMPI
07 FD REVERT
08 FD REVERT
09 5B JUMPDEST
0A 34 CALLVALUE
0B 36 CALLDATASIZE
0C 02 MUL
0D 6008 PUSH1 08
0F 14 EQ
10 6014 PUSH1 14
12 57 JUMPI
13 FD REVERT
14 5B JUMPDEST
15 00 STOP

? Enter the value to send: 2
? Enter the calldata: 0x00000000

Puzzle solved!