elective-stereophonic
elective-stereophonic
Personalize your NXT address
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.12.2

Author Topic: Personalize your NXT address  (Read 1966 times)

jones

  • Hero Member
  • *****
  • Karma: +310/-8
  • Offline Offline
  • Posts: 1043
  • write code not war
    • View Profile
    • jNxt
Personalize your NXT address
« on: August 17, 2014, 06:31:07 am »

I've written an simple python script to generate passwords that lead to nxt accounts with specified words in them. It seems to work pretty well.

generated this one with 'ALEX' in about 5 minutes.
EVL51KZSTGP9DP6WO6850PW00WSMX8F9XNTRT8FI8MVADFPCGLQHQK70T4IEKX08UWKLRYN8ZXPMQPU96AL25KABLD7O0VAG0M5K
NXT-ALEX-2HAM-88CN-4YNCL

I went overkill with the random amount to 100 in sight of what happened at BTER and the fact that everyone copy pastes anyways.
Remember this is random chance so getting the right one could take a minute or many hours.

Code: [Select]
import json
import urllib2
import uuid
import random
import string

# generate random
def rd(n):
    return ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(n))

# send api call, must have NXT server running
def nxtapi(typ, attr):
return json.load(urllib2.urlopen('http://127.0.0.1:7876/nxt', 'requestType='+typ+'&'+attr))


# the list of words to look for
find = ["ANY", "WORDS", "YOU", "WANT", "TO", "FIND", "GO", "HERE"];

# make the loops here, Control-C to stop it
counter = 0;
while True:
pwd = rd(100);
acc = nxtapi("getAccountId","secretPhrase="+pwd)["accountRS"];
counter = counter+1;
for val in find:
if val in acc:
print("found: "+acc+" -> "+pwd);
if counter%10000 == 1:
#prints a dot to say its still alive
print ".";

Remember it will keep generating until you exit the program.

Hope you guys enjoy this,

-- Jones
if your really happy: NXT-S54T-A67N-CATS-9SL3X
Logged
-- Jones NXT-RJU8-JSNR-H9J4-2KWKY

jones

  • Hero Member
  • *****
  • Karma: +310/-8
  • Offline Offline
  • Posts: 1043
  • write code not war
    • View Profile
    • jNxt
Re: Personalize your NXT address
« Reply #1 on: August 17, 2014, 07:00:58 am »

*NOTE: RS format doesn't allow for the letters O, and I, or the numbers 1 or 0
Logged
-- Jones NXT-RJU8-JSNR-H9J4-2KWKY

Eadeqa

  • Hero Member
  • *****
  • Karma: +83/-68
  • Offline Offline
  • Posts: 1888
    • View Profile
Re: Personalize your NXT address
« Reply #2 on: August 17, 2014, 07:27:55 am »

Logged
NXT-GZYP-FMRT-FQ9K-3YQGS

jones

  • Hero Member
  • *****
  • Karma: +310/-8
  • Offline Offline
  • Posts: 1043
  • write code not war
    • View Profile
    • jNxt
Re: Personalize your NXT address
« Reply #3 on: August 17, 2014, 07:35:44 am »

This one is probably faster

https://nxtforum.org/nxt-projects/(ann)-nxtrsvanity-a-vanity-generator-for-reed-solomon-addresses/

and allows you to use full regex expression (use: http://www.jslab.dk/tools.regex.php )

oh didn't see that one,
well I guess I did a cheap python port then, well good enough for me ;D
Logged
-- Jones NXT-RJU8-JSNR-H9J4-2KWKY

dance

  • Jr. Member
  • **
  • Karma: +7/-2
  • Offline Offline
  • Posts: 69
    • View Profile
Re: Personalize your NXT address
« Reply #4 on: August 17, 2014, 12:14:03 pm »

I've written an simple python script to generate passwords that lead to nxt accounts with specified words in them. It seems to work pretty well.

generated this one with 'ALEX' in about 5 minutes.
EVL51KZSTGP9DP6WO6850PW00WSMX8F9XNTRT8FI8MVADFPCGLQHQK70T4IEKX08UWKLRYN8ZXPMQPU96AL25KABLD7O0VAG0M5K
NXT-ALEX-2HAM-88CN-4YNCL

I went overkill with the random amount to 100 in sight of what happened at BTER and the fact that everyone copy pastes anyways.
Remember this is random chance so getting the right one could take a minute or many hours.

Code: [Select]
import json
import urllib2
import uuid
import random
import string

# generate random
def rd(n):
    return ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(n))

# send api call, must have NXT server running
def nxtapi(typ, attr):
return json.load(urllib2.urlopen('http://127.0.0.1:7876/nxt', 'requestType='+typ+'&'+attr))


# the list of words to look for
find = ["ANY", "WORDS", "YOU", "WANT", "TO", "FIND", "GO", "HERE"];

# make the loops here, Control-C to stop it
counter = 0;
while True:
pwd = rd(100);
acc = nxtapi("getAccountId","secretPhrase="+pwd)["accountRS"];
counter = counter+1;
for val in find:
if val in acc:
print("found: "+acc+" -> "+pwd);
if counter%10000 == 1:
#prints a dot to say its still alive
print ".";

How to make it be interpreted on python 3.4?
Logged

jones

  • Hero Member
  • *****
  • Karma: +310/-8
  • Offline Offline
  • Posts: 1043
  • write code not war
    • View Profile
    • jNxt
Re: Personalize your NXT address
« Reply #5 on: August 17, 2014, 05:18:08 pm »

I've written an simple python script to generate passwords that lead to nxt accounts with specified words in them. It seems to work pretty well.

generated this one with 'ALEX' in about 5 minutes.
EVL51KZSTGP9DP6WO6850PW00WSMX8F9XNTRT8FI8MVADFPCGLQHQK70T4IEKX08UWKLRYN8ZXPMQPU96AL25KABLD7O0VAG0M5K
NXT-ALEX-2HAM-88CN-4YNCL

I went overkill with the random amount to 100 in sight of what happened at BTER and the fact that everyone copy pastes anyways.
Remember this is random chance so getting the right one could take a minute or many hours.

Code: [Select]
import json
import urllib2
import uuid
import random
import string

# generate random
def rd(n):
    return ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(n))

# send api call, must have NXT server running
def nxtapi(typ, attr):
return json.load(urllib2.urlopen('http://127.0.0.1:7876/nxt', 'requestType='+typ+'&'+attr))


# the list of words to look for
find = ["ANY", "WORDS", "YOU", "WANT", "TO", "FIND", "GO", "HERE"];

# make the loops here, Control-C to stop it
counter = 0;
while True:
pwd = rd(100);
acc = nxtapi("getAccountId","secretPhrase="+pwd)["accountRS"];
counter = counter+1;
for val in find:
if val in acc:
print("found: "+acc+" -> "+pwd);
if counter%10000 == 1:
#prints a dot to say its still alive
print ".";

How to make it be interpreted on python 3.4?

I would think that you just copy it into a text file, something like find.py, the execute the command python find.py
Logged
-- Jones NXT-RJU8-JSNR-H9J4-2KWKY

dance

  • Jr. Member
  • **
  • Karma: +7/-2
  • Offline Offline
  • Posts: 69
    • View Profile
Re: Personalize your NXT address
« Reply #6 on: August 17, 2014, 06:17:02 pm »

I would think that you just copy it into a text file, something like find.py, the execute the command python find.py
Didn't work.

-----------------------------
  File "nxt_name.py", line 23, in <module>
    acc = nxtapi("getAccountId","secretPhrase="+pwd)["accountRS"];
  File "nxt_name.py", line 13, in nxtapi
    return json.load(urllib.urlopen('http://127.0.0.1:7876/nxt', 'requestType='+
typ+'&'+attr))
AttributeError: 'module' object has no attribute 'urlopen'
-----------------------------
Logged

mart-e

  • Newbie
  • *
  • Karma: +2/-0
  • Offline Offline
  • Posts: 11
    • View Profile
Re: Personalize your NXT address
« Reply #7 on: August 19, 2014, 07:17:24 pm »

@Dance, you are most likely using python3 instead of python2.
Execute it with the command "python2 find.py" instead
Logged
Liked my post? Donations accepted ;-)
NXT-XZ53-H97E-6FK5-9RHAS

dance

  • Jr. Member
  • **
  • Karma: +7/-2
  • Offline Offline
  • Posts: 69
    • View Profile
Re: Personalize your NXT address
« Reply #8 on: August 19, 2014, 07:49:03 pm »

@Dance, you are most likely using python3 instead of python2.
Execute it with the command "python2 find.py" instead
Ye,
How to make it be interpreted on python 3.4?
Logged

mart-e

  • Newbie
  • *
  • Karma: +2/-0
  • Offline Offline
  • Posts: 11
    • View Profile
Re: Personalize your NXT address
« Reply #9 on: August 19, 2014, 08:23:53 pm »

Oh my bad, read too fast.
Well you need to adapt the script for python 3. Try with:

gist.github.com/mart-e/4adbb51361b6c27c88a5

sorry for the link, the forum detects links in the code and forbid me to post links, so I had to cheat a bit by actually using an external link... ;)
Logged
Liked my post? Donations accepted ;-)
NXT-XZ53-H97E-6FK5-9RHAS

dance

  • Jr. Member
  • **
  • Karma: +7/-2
  • Offline Offline
  • Posts: 69
    • View Profile
Re: Personalize your NXT address
« Reply #10 on: August 19, 2014, 08:46:44 pm »

Oh my bad, read too fast.
Well you need to adapt the script for python 3. Try with:

gist.github.com/mart-e/4adbb51361b6c27c88a5

sorry for the link, the forum detects links in the code and forbid me to post links, so I had to cheat a bit by actually using an external link... ;)
thanks, you saved me from downloading python2 on expansive 2g dial-up :)
Logged
 

elective-stereophonic
elective-stereophonic
assembly
assembly