Merge branch 'master' of github.com:b-mueller/mythril

pull/2/head
Bernhard Mueller 7 years ago
commit 3e0630af14
  1. 6
      README.md

@ -31,7 +31,7 @@ Mythril can assemble code from input files that contain one instruction per line
$ ./mythril.py -d -c "0x606060405050" -o code.easm
```
Edit the instructions in a text editor. For example, we can change the two `PUSH` instruction from the original example:
Edit the instructions in a text editor. For example, we can modify the `PUSH` instructions from the original example:
```
PUSH2 0x4050
@ -49,7 +49,7 @@ $ ./mythril.py -a code.easm
The virtual machine language is described in the [Ethereum Yellowpaper](http://gavwood.com/paper.pdf).
### Loading a contract from the Ethereum blockchain
### Disassembling a contract from the Ethereum blockchain
You can also load code from an existing contract in the Ethereum blockchain. For this, you need to have a full node running, and the RPC debug interface must be activated. For example, when running `geth` you can do this as follows:
@ -60,7 +60,7 @@ $ geth --syncmode full --rpc --rpcapi eth,debug
To load contract code from your node, pass the TxID of the transaction that created the contract:
```bash
./mythril.py -d -t ./mythril.py -d -t 0x23112645da9ae684270de843faaeb44918c79a09e019d3a6cf8b87041020340e
$ ./mythril.py -d -t 0x23112645da9ae684270de843faaeb44918c79a09e019d3a6cf8b87041020340e -o some_contract.easm
```
Note: If you want to get code from the Ethereum mainnet, it is easier to download it from [Etherscan](https://etherscan.io).

Loading…
Cancel
Save