Skip to content

Rezxx/inspect-analysis2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

101 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

inspect-analysis2

Inspect is a security scanner for EOSIO smart contracts.

Getting Started

Requirements

Use

WebAssembly Disassembly

WebAssembly byte-code must first be disassembled to extract a series of facts upon which Souffle static analysis will be performed. Place the disassembler binary you have been provided with into the "binaries/" folder. To see the full list of disassembly options:

java -jar build/libs/inspect-0.x.x.jar -h

Bash script usage

  1. Grant Permission
inspect-analysis2$ chmod +x inspect trans run_test
  1. Run inspect (decompiler + analysis in datalog)
inspect-analysis2$ ./inspect foo.wasm
  1. Print out the decompiled program to the terminal (For debugging purpose and only one will be printed)
inspect-analysis2$ ./trans
  1. Run test suite
inspect-analysis2$ ./run_test path/to/benchmark/

"benchmark" should be a directory with sub-directories storing assorted test cases(.wasm) with according expected output files(.out). The script will generate expected output from actual output if one does not exist.

About

Inspect is a security scanner for EOSIO smart contracts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • WebAssembly 50.0%
  • C 39.3%
  • C++ 9.8%
  • Other 0.9%