Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect to eth node #1580

Open
wants to merge 113 commits into
base: master
Choose a base branch
from
Open

Connect to eth node #1580

wants to merge 113 commits into from

Conversation

smoelius
Copy link
Contributor

@smoelius smoelius commented Jan 3, 2020

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 2 times, most recently from 50577cc to a822b45 Compare June 12, 2020 15:14
@ehennenfent ehennenfent linked an issue Jun 22, 2020 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support executing on a live EVM node
4 participants