From f22a525b782477a0e5fd7b9f80e1033a227351d1 Mon Sep 17 00:00:00 2001 From: jwinterm Date: Mon, 21 Jul 2014 01:27:58 -0500 Subject: [PATCH] Edited README.md and added line to make work on Windows. --- README.md | 25 +++++++++++++++++++++++++ simplevanityCLI.py | 6 ++++-- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e69de29..849c75b 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,25 @@ +# SimpleVanity Address Generator + +## About +This is a vanity address generator for simplewallet. It was tested with Monero's version of simplewallet, but I think it should work for other CryptoNote currencies as well. The script is written in Python and requires only built in modules, and so it should work on Windows, Linux, and Mac. It's tested on Win7 and Debian, and it seems to be a bit faster on Debian. + +The script is currently only capable of executing a single thread, and it has to open simplewallet, check output address, and then delete generated files for each address generated. This is slow. I am getting 2 (Windows) to 4 (Debian) addresses generated per second. + +## Requirements +You need Python 2.7 (possibly other versions work) and a binary of simplewallet (a new enough version that it produces the electrum seed during wallet generation). + +## Usage +The program is run from the terminal, and it must have simplewallet in the same directory. The arguments are passed as follows: +``` +./simplevanity.py wallet_file_name wallet_pw target_string +``` +if the -m option is specified, then it will attempt to match the target string anywhere in the address rather than just at the beginning +``` +./simplevanity.py -m wallet_file_name wallet_pw target_string +``` +The program will inform you how many attempts it expects to have to make when you launch it. You can estimate the amount of time it will take based on this number and the number of attempts you are getting per second. + +## Issues +For some reason, the second character in the address is not able to be all values, only 0-9, A, and B. So, by default, the program attempts to match from the 3rd character onwards. If you include the -m flag, then it will try and match your target string anywhere in the address. + +Also, it's slow. I may try and make it multi-threaded if I get a chance. \ No newline at end of file diff --git a/simplevanityCLI.py b/simplevanityCLI.py index 5bea07e..a3d30ac 100755 --- a/simplevanityCLI.py +++ b/simplevanityCLI.py @@ -57,8 +57,10 @@ def createWallet(): if len(electrum) > 2: break - p.kill() - + if sys.platform == 'win32': + os.system("taskkill /im simplewallet.exe /f") + else: + p.kill() # print "Generated address: {0}".format(address) if not args.match_anywhere: print "Target: {0}, Address first chars: {1}".format(args.target, address[2:len(args.target)+2])