Expand description
§EVM Hound
A Minimalistic Rust library to extract all potential function selectors from EVM bytecode without source code.
For examples and more check out the github repo.
§Use cases:
Made for Hackers.tools Trading Simulator to search/bruteforce for potential methods that start trading.
Structs§
- Instruction
- Bytecode Instruction
Enums§
- Contract
Type - Available contract types to detect based on ERC interfaces. Types will be added as needed (You are welcome to make a PR).
- Opcode
- EVM Opcodes References https://evm.codes
Functions§
- contract_
type_ from_ selectors - Detects Contract Type (ERC20, ERC721, or ANY) using selectors extracted from bytecode
- disasm
- Returns parsed bytecode instructions
- selectors_
from_ bytecode - Returns all potential function selectors from the contract deployed bytecode as
[u8; 4]
; - string_
selectors_ from_ bytecode - Returns all potential function selectors from the contract deployed bytecode as hex
0xa9059cbb
String