Skip to content
This repository was archived by the owner on Jun 24, 2026. It is now read-only.

Connect to eth node#1580

Closed
smoelius wants to merge 113 commits into
masterfrom
dev-connect-to-eth-node
Closed

Connect to eth node#1580
smoelius wants to merge 113 commits into
masterfrom
dev-connect-to-eth-node

Conversation

@smoelius

@smoelius smoelius commented Jan 3, 2020

Copy link
Copy Markdown
Contributor

This PR enables Manticore to connect to an Ethereum node and generate symbolic transactions for a deployed contract using the contract's on-chain storage. Manticore obtains the contract's storage values using the node's JSON RPC interface.

This PR specifically adds two command line options:

  • --rpc URL: specify the URL of an Ethereum node to connect to. Must be of the form IP:PORT
  • --txtarget TXTARGET: specify the address of a deployed contract to target

This PR further adds an optional world_state parameter to ManticoreEVM's constructor. One can connect to an Ethereum node from within a Manticore script as follows:

from manticore.ethereum import ManticoreEVM
from manticore.platforms.evm_world_state import RemoteWorldState

m = ManticoreEVM(world_state=RemoteWorldState(URL))

@smoelius
smoelius force-pushed the dev-connect-to-eth-node branch from a61975d to 51c6091 Compare January 5, 2020 00:19
Comment thread manticore/platforms/evm_world_state.py Outdated
@smoelius
smoelius force-pushed the dev-connect-to-eth-node branch from ac902c5 to 9dbec65 Compare January 6, 2020 22:15
@smoelius
smoelius force-pushed the dev-connect-to-eth-node branch from 9dbec65 to d58368c Compare January 6, 2020 22:26
@smoelius
smoelius force-pushed the dev-connect-to-eth-node branch from 3599e65 to 912366b Compare January 9, 2020 20:30
@smoelius
smoelius force-pushed the dev-connect-to-eth-node branch 2 times, most recently from 50577cc to a822b45 Compare June 12, 2020 15:14
@smoelius
smoelius force-pushed the dev-connect-to-eth-node branch from 163a97f to 94055f9 Compare June 12, 2020 16:28
@smoelius
smoelius force-pushed the dev-connect-to-eth-node branch from ea65a78 to 8af6869 Compare June 12, 2020 16:55
@ehennenfent ehennenfent linked an issue Jun 22, 2020 that may be closed by this pull request
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support executing on a live EVM node

5 participants