Skip to content

智能合约代码审计

使用mythril审计智能合约

mythril

安装solitity依赖

solidity

sudo add-apt-repository ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install solc

安装mythril

sudo apt-get update
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install -y solc
sudo apt-get install libssl-dev
sudo apt-get install -y python3-pip=9.0.1-2 python3-dev
sudo ln -s /usr/bin/python3 /usr/local/bin/python
sudo apt-get install -y pandoc
sudo apt-get install -y git
pip3 install mythril

使用mythril分析智能合约代码

myth -x *.sol:contract -o markdown