msuiche / porosity

*UNMAINTAINED* Decompiler and Security Analysis tool for Blockchain-based Ethereum Smart-Contracts
https://www.comae.io
927 stars 181 forks source link

Option "--decompile" makes the execution stuck #27

Open tcimoli opened 7 years ago

tcimoli commented 7 years ago

Hi I have tried to decompile a simple contract, taken from etherscan.io. Running porosity command with --list option is fine, but then when I try to run with --decompile option the execution never ends and I have to kill the process. Here is the output:

Porosity v0.1 (https://www.comae.io)
Matt Suiche, Comae Technologies <support@comae.io>
The Ethereum bytecode commandline decompiler.
Decompiles the given Ethereum input bytecode and outputs the Solidity code.

Attempting to parse ABI definition...
Success.
Hash: 0x06FDDE03

example2.zip


I am attaching files. To run porosity I have created a script named decompile.sh

bansatya commented 7 years ago

I found similar kind of issues with my contract

cryptonoob42 commented 7 years ago

Same with this contract:

https://etherscan.io/address/0xddfbd99c8ca1f5cd4b981b7219a27078fbbc1c50#code

anymos commented 7 years ago

Good morning,

Same issue,

I was able to unstuck it by changing this part image

Unfortunately, the next issue is the the same than https://github.com/comaeio/porosity/issues/40

Not sue if related, I did not have enought time atthe moment to find it out.

Maybe next week