Git Product home page Git Product logo

swek3's Introduction

Swek the EVM Security Toolbox.

Swek is a Security toolbox focused on EVM written in Rust.

Most of the features are designed to help auditors to get faster in the daily works.

Feel free to contact me to add some features or found any bugs.

If you are intersted in Rust, MeV, Solidity Sec join us here => https://discord.gg/uxqbK7wS

ezgif-4-a87ec11928


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.


Onchain

A lists of tools for onchain contracts and incidents response.

get-selectors

Design to get all the selectors from the bytecode of a contract.

Paramaters Informations
--address address of the contract
--rpc Link to the rpc of the wanted blockchain

CleanShot 2023-03-28 at 21 39 42@2x

Mempool Watcher

A small Mempool Watcher written in Rust.

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

image

Contract-info.

Get informations using AST of the contract. /!\ 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 yes will return some crisk ready to share in markdown (need to pass the modifier). image

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


Implemented Features

  • Visibility Checker : Display all functions in red who has _ but not internal visibility.

Upcoming Features.

Contracts Features:

  • Analyze directly in (etherscan, snowtrace, moonscan, etc).
  • Add the view pure etc in modifiers.
  • Add a params for remapping like --remaps @openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/
  • Display all the contracts names inside the folder.
  • Display all the externals calls.

Others features:

  • private key to address.
  • 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.
  • Create a markdown option to store as a markdown file.
  • Add a kind of "binwalk" on calldata (4bytes signatures).

TODO

  • Reuse the Solang lib directly to get the notice through comments.
  • Use the solang library

swek3's People

Contributors

ethnical avatar nodauf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.