Usage of Mythril security analysis tool
Mythril is a security analysis tool for EVM bytecode. It detects security vulnerabilities in smart contracts built for Ethereum. We will analyze the Solidity-based smart contract called StateChannel.sol (of this project).
$ sudo apt update
$ sudo apt install software-properties-common
$ sudo add-apt-repository ppa:ethereum/ethereum
$ sudo apt install solc
$ sudo apt install libssl-dev python3-dev python3-pip
$ pip3 install mythril
$ pip3 install python-dateutil==2.8.0
$ cd contracts
$ myth analyze StateChannel.sol > ./security-report
$ cat ./security-report
$ myth analyze --rpc infura-ropsten -a contract_address > ./security-report
$ cat ./security-report