10.puzzles_10
2023-07-27 14:41:54 # 15.EVM Puzzles

puzzles_10

CALLVALUE不得大于代码长度也就是1b。

CALLDATASIZE取模3要等于0,那么calldata可以是0x。

CALLVALUE加上0x0a要等于0x19,那么CALLVALUE=25-10=15=0x0f。

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
28
29
30
31
32
#############
# Puzzle 10 #
#############

00 38 CODESIZE
01 34 CALLVALUE
02 90 SWAP1
03 11 GT
04 6008 PUSH1 08
06 57 JUMPI
07 FD REVERT
08 5B JUMPDEST
09 36 CALLDATASIZE
0A 610003 PUSH2 0003
0D 90 SWAP1
0E 06 MOD
0F 15 ISZERO
10 34 CALLVALUE
11 600A PUSH1 0A
13 01 ADD
14 57 JUMPI
15 FD REVERT
16 FD REVERT
17 FD REVERT
18 FD REVERT
19 5B JUMPDEST
1A 00 STOP

? Enter the value to send: 15
? Enter the calldata: 0x

Puzzle solved!

完结

1
2
3
? Do you want to play the next puzzle? Yes

All puzzles are solved!