Giter Site home page Giter Site logo

roynahar / nonce-recovery-attack Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 3.0 3 KB

This is a nonce k recovery program. it uses a brute force technique to get the correct nonce k in the ECDSA SECP256k1 Curve which is implemented in Bitcoin and Etherum. All you need to give as input is the R,S,Z signature and public key in hexadecimal. ie: 0x123456abcd

Python 100.00%

nonce-recovery-attack's Introduction

nonce-recovery-attack

This is a nonce k recovery program. it uses a brute force technique to get the correct nonce k in the ECDSA SECP256k1 Curve which is implemented in Bitcoin and Etherum. All you need to give as input is the R,S,Z signature and public key in hexadecimal. ie: 0x123456abcd What is great about this program is that it stores all the k nonce thats been used to guess the correct nonce so that if you accidentally close the program, it wont restart from the same keys that was used. it will continue from where you left off.

If you like this program, donate to Bitcoin Address: 3MNAKj3xjJRRjfMtdSfgNZsKAYXjSNeXtg

nonce-recovery-attack's People

Contributors

krashkrash avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

nonce-recovery-attack's Issues

how much time it takes?

how much time it takes to find the nonce?is it take so long like bruteforce a privatekey?

When I start the program via python this is what is shows

Traceback (most recent call last):
File "C:\Usersl\nonce-recovery-attack\start.py", line 61, in
result = nonce_recovery(r, s, z, k_guess, public_key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Usersl\nonce-recovery-attack\start.py", line 8, in nonce_recovery
public_key = VerifyingKey.from_string(public_key_bytes, curve=SECP256k1).to_string()[:32]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\AppData\Local\Programs\Python\Python311\Lib\site-packages\ecdsa\keys.py", line 275, in from_string
point = PointJacobi.from_bytes(
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\AppData\Local\Programs\Python\Python311\Lib\site-packages\ecdsa\ellipticcurve.py", line 575, in from_bytes
coord_x, coord_y = super(PointJacobi, cls).from_bytes(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\AppData\Local\Programs\Python\Python311\Lib\site-packages\ecdsa\ellipticcurve.py", line 409, in from_bytes
raise MalformedPointError(
ecdsa.errors.MalformedPointError: Length of string does not match lengths of any of the enabled (uncompressed, raw, compressed, hybrid) encodings of the curve.

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.