Skip to content

Instantly share code, notes, and snippets.

@pradyuman-verma
Last active April 13, 2023 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pradyuman-verma/d76ab510335cdc9eb7f40f1dee78e43e to your computer and use it in GitHub Desktop.
Save pradyuman-verma/d76ab510335cdc9eb7f40f1dee78e43e to your computer and use it in GitHub Desktop.
evm-puzzle-007: RULES - 1. The puzzle has more than one solution | 2. All the values should be non zero | 3. You need to hack it such a way it satisfies every calldata passed.
GASPRICE
CALLDATASIZE
CALLVALUE
PUSH2 0x3E8
PUSH0
CALLDATALOAD
PUSH1 0xf4
SHR
MUL
PUSH0
CALLDATALOAD
PUSH1 0xf4
SHR
ADD
DIV
DIV
DIV
PUSH0
CALLDATALOAD
PUSH1 0xf4
SHR
EQ
PUSH1 0x1f // JUMPDEST OFFSET
JUMPI
REVERT
JUMPDEST
PUSH0
ORIGIN
RETURN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment