Nxt Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Nxt Client 1.11.9 - NEW RELEASE: Ardor 2.0.3e TestNet IS LAUNCHED! - The Ignis ICO is currently ongoing!!

Pages: [1]

Author Topic: Typo finder - 12 word mixer  (Read 199 times)

jordivictor

  • Newbie
  • *
  • Offline Offline
  • Posts: 4
    • View Profile
  • Karma: +0/-0
Typo finder - 12 word mixer
October 09, 2017, 02:44:06 pm

Dear NXT members,

In 2016 I bought some NXT and received ARDOR because of the snapshot. When I wanted to withdraw some funds, I found out that I mixed up the 12 words because of another investment that day, in which I used the same 12-word seed, but scrambled. I think that I made a copy+paste mistake. The 12 words should be in the passphrase, but in another combination.

After advice from a member, I found the ardor-tools typo finder. I tried the corresponding passphrase, public key and ID in the search, but with no results. I'm looking for a way to scan through possible combinations of the password and eventually the password which belongs to my wallet. I have made the command line for crunch for generating all possible combinations, which results in 32 GB of data. Of course, I already tried some random permutations but this is just pathetic to do, looking for a dust of sand in the sea.

My idea is to use the NXT API and insert all possible passwords and write this to a file which contains al JSON responses. After this just search for my ID. This is possible in theory right? I think I have found the way to find my wallet, I only don't know how to generate such a script on my own, only the needed data.

I hope to find someone that has the knowledge to help me with this missing piece of my search and I hope we can settle this in a trusted way.

With kind regards,

Jordivictor
« Last Edit: October 09, 2017, 02:59:54 pm by jordivictor »

VanBreuk

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 2536
    • View Profile
  • Karma: +342/-18
Re: Typo finder - 12 word mixer
October 09, 2017, 08:34:30 pm

Hello jordivictor,

if you already have a set of all the possible 12-word permutations, you could search them using the Nxt API with

Code: [Select]
curl -d requestType=getAccountId -d secretPhrase="PERMUTATION" http://localhost:7876/nxt
This returns a JSON object including the accountRS value corresponding to that secretPhrase, so if you are using for instance bash you can iterate on your permutations array (csv, plain list, whatever it is) and use jq to process the JSON, with something like

Code: [Select]
while true; do
    address="NXT-ADDRESS-TO-FIND"
    # command to read the current permutation value from the list and save it as PERMUTATION
    comparejson=$(curl -d requestType=getAccountId -d secretPhrase="$PERMUTATION" http://localhost:7876/nxt | jq -r '.accountRS')
    if [ "$comparejson" == "$address" ]; then
        echo "> Passphrase for $address is $PERMUTATION"; break
    fi
    # command to move to next permutation in the list
done

The bad news is that it might take a long time for you to find the right passphrase. Permutations of a set of 12 words are 12!=479001600. If an iteration took for instance 5 milliseconds, going through the whole list of permutations could take around three years, so in average 1,5 years to find the right one... in order to do this faster, you maybe could go Java and build a custom script using the corresponding functions in the Nxt cryptography source, but I cannot estimate how much more efficient that would be.

Good luck.
 
GPG Fingerprint: B020 D1C1 F289 3B2C 3577  9EAD 455D D175 5913 C7F1

jordivictor

  • Newbie
  • *
  • Offline Offline
  • Posts: 4
    • View Profile
  • Karma: +0/-0
Re: Typo finder - 12 word mixer
October 09, 2017, 09:17:59 pm

Hi VanBreuk,

Thanks for your reply. This was exactly the information I was looking for. I also did the 12! calculation and because of the relative low combinations that can be made, did I reach for help.

I will let you know in the upcoming decade if it worked ;D

Kind regards,

Victorjordi

P.s: VanBreuk dutch?

martismartis

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1227
    • View Profile
  • Karma: +70/-10
Re: Typo finder - 12 word mixer
October 10, 2017, 06:05:54 am

Hi

Did you try some common typo errors users sometime have?

1. Add extra spaces in the beginning or the end of passphrase.
2. If you copy paste passphrase, try to add "c" or "v" letters to the end of passphrase.
3. If you use Windows and store passphrase in Microsoft Word, try to copy paste passphrase to notepad or other simple editor and then copy paste passphrase from it into client.

jordivictor

  • Newbie
  • *
  • Offline Offline
  • Posts: 4
    • View Profile
  • Karma: +0/-0
Re: Typo finder - 12 word mixer
October 10, 2017, 12:01:10 pm

Hi Martis,

Just a .txt file but thanks for the info!

Greetings,

Victor
Pages: [1]