Skip to content

InPlusLab/SmartState

Repository files navigation

SmartState

The artifact of SmartState.

Usage

Build from source

  1. Requirements
pip install -r requirements.txt
  1. Run Run SmartState to detect vulnerabilities.
python vulnerability_detection.py

Build from docker

We also provide a docker image on docker hub.

Please pull it first.

docker pull inplus/smartstate:v1

You can run it with the following cmd:

docker run -it --name smartstate inplus/smartstate

cd smartstate/

python vulnerability_detection.py

And the result is in demo_profitgain.csv, containing contract address, vulnerability location (i.e. vulnerable function), tainted/manipulated state variables.

Dataset

The manual-labeled SRV dataset is in SmartState-dataset.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published