GithubHelp home page GithubHelp logo

kecmatch's Introduction

Kecmatch

Use gpu version if you have a nvidia card.

Finds matching solidity function signatures, i.e. method ID.

Build

$ cd build
$ go build -o kecmatch

Run

$ ./kecmatch -fn_name "Withdraw" -fn_args "(address[],uint256)" -fn_sig "000000ff" -interval 10

Docker

$ docker build . -t kecmatch

Run with docker

$ docker run --rm kecmatch -fn_name "SwapFunc" -fn_args "(address,uint256,address)" -fn_sig "00000007"

Usage

$ docker run --rm kecmatch -h
  -fn_args string
        # solidity function arguments (default "(address[],uint256)")
  -fn_name string
        # solidity function name (default "DefaultFunc")
  -fn_sig string
        # solidity function method signature (default "00badfee")
  -goroutines int
        # goroutines  (default 8)
  -interval int
        # logger interval (second) (default 3)

Output

2022/10/24 22:58:55  SIGNATURE FOUND:

 data: Withdraw50000395536(address[],uint256)
 signature: 000000ff
 iteration: 3181945
 goroutines: 8
 exec time: 894.849036ms

Note

A probability of one in every 4 billion. Finding the wanted signature may take longer than expected.

License

MIT

kecmatch's People

Contributors

iowar avatar

Stargazers

 avatar  avatar

Watchers

 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.