Swek3-shengji
2022-10-23 08:40:29 Author: github.com(查看原文) 阅读量:21 收藏

A web3 Security Toolbox written in Rust.

ezgif-4-a87ec11928

Upcoming Features.

Contracts Features:

  • Add a params for remapping like --remaps @openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/
  • Display all the contracts names inside the folder.
  • Display all functions who has _ but not internal flag.
  • Display all the externals calls.

Others features:

  • Converter Wei Gas.
  • ByteCode ASM deploy.
  • Get interface from non compile contract
  • Check the dif between OZ implentation and the implentation inside the sol file.
  • Reorganise inside a file the interface and the contract to have them in correct order.

Convert Solidity to Interface

Convert Solidity file into an interface using the convert2interface (download the right version of the Solc then compile and extract the interface).

image

Just need to use the --path parameter.

Mempool Watcher

A small Mempool Watcher in Rust.

  • Need to add lots of features to filter every txs.
  • Next step add a features to simulates txs.

image

Get informations using contract-info.

/!\ This doesn't compile the contract /!
To have a quick overview of the (functions, modifiers, visibility, library etc...) you can use -m for modifiers and -v for the visibility.

Usage : image

Centralisation Risk

  • The -c set to true will return some crisk ready to share in markdown (need to pass the modifier). image

Usage : swek modifiers --path /Users/ethnical/Sec/Rust/oz_implementations/contracts/OffShore.sol -m onlyOwner -c true


文章来源: https://github.com/y35uishere/Swek3-shengji
如有侵权请联系:admin#unsafe.sh