From 07e85bdf6b7e0a141e0773d1788faee278348856 Mon Sep 17 00:00:00 2001 From: Bernhard Mueller Date: Mon, 18 Sep 2017 16:30:03 +0700 Subject: [PATCH 1/2] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ee0020b2..505ef0c2 100644 --- a/README.md +++ b/README.md @@ -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). From aad5d600fccbfdfb55ee2a640ae5bf7778680eca Mon Sep 17 00:00:00 2001 From: Bernhard Mueller Date: Mon, 18 Sep 2017 17:36:13 +0700 Subject: [PATCH 2/2] Fix grammar --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 505ef0c2..9cd96d29 100644 --- a/README.md +++ b/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