Bitcoin Forum
September 24, 2018, 10:43:12 AM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Vanitygen Output Address File Reader/Searcher/Aggregator Script  (Read 2690 times)
digicoinuser
Legendary
*
Offline Offline

Activity: 1344
Merit: 1005



View Profile WWW
March 27, 2016, 01:17:43 AM
 #1

I'm sharing my script which will allow you to search for specified Vanitygen output addresses in a directory or a single file.  The default directory is in the script and everything can be changed to your liking.  

You can search for a single address in all files, an address in a single file, or for all addresses in a directory.

Quote
#Vanitygen output file reader/searcher/aggregator
#
#file output is achieved with the following command
#./vanitygen -f addressfind.txt -k -o address.txt
#
#USAGE - ./CHECKADDY.sh "1SEARCHADDRESS" "address_list.txt" /home/custom_addy_dir/
#usage using default DIR showing all addresses - ./CHECKADDY.sh
#usage with SEARCHTERM - ./CHECKADDY.sh "1Digicoin"
#usage define DIR - ./CHECKADDY.sh "1Digicoin" "" /home/bct/vanitygen-master/AFOUNDdir/
#usage using FILE and blank search term - ./CHECKADDY.sh "1Digicoin" address.txt

Create a file named "CHECKADDY.sh" on your Linux box using the below linked script and run with one of the above usage commands!

CHECKADDY.sh - Vanitygen Output File Address Search Script

This bash script was built in Linux, but should work fully on Windows 10 with Bash.


Sample usage searching for specific addresses in ALL files:
user@debkav:~# cd /home/bct/vanitygen-master/
user@debkav:/home/bct/vanitygen-master# ./CHECKADDY.sh "1Digi"
Processing /home/bct/vanitygen-master/AFOUNDdir/address_easy_set1.txt file...
Number of addresses in file: 0
Processing /home/bct/vanitygen-master/AFOUNDdir/address_found_1Digi_1.txt file...
Number of addresses in file: 3
Processing /home/bct/vanitygen-master/AFOUNDdir/address_found_1Digi_2.txt file...
Number of addresses in file: 0
Processing /home/bct/vanitygen-master/AFOUNDdir/address_found_1TestAddy_1.txt file...
Number of addresses in file: 0
Processing /home/bct/vanitygen-master/AFOUNDdir/address_found_1TestAddy_2.txt file...
Number of addresses in file: 0
Processing /home/bct/vanitygen-master/AFOUNDdir/address_found_1TestAddy_3.txt file...
Number of addresses in file: 0
Processing /home/bct/vanitygen-master/AFOUNDdir/address_found_1TestAddy_4.txt file...
Number of addresses in file: 0
Processing /home/bct/vanitygen-master/AFOUNDdir/address.txt file...
Number of addresses in file: 0
Total number of addresses: 3
Temp File Location - ( /home/bct/vanitygen-master/AFOUNDdir/tmp_Address_list.txt )
Address: 1DigivomtoYiWs7DPfnFwE6w2K6RLugUTL
Address: 1Digik7QKY5FZeqTVnWKjcMjocFM4kXuqy
Address: 1DigiGPdH6ZtKdicHVvGoBnCj4Tyki85wy


Sample usage searching for specific addresses in a single file:
user@debkav:~# cd /home/bct/vanitygen-master/
user@debkav:/home/bct/vanitygen-master# ./CHECKADDY.sh "1Digi" address_found_1Digi_1.txt
Number of addresses in file: 3
File Location - ( /home/bct/vanitygen-master/AFOUNDdir/address_found_1Digi_1.txt )
Address: 1DigivomtoYiWs7DPfnFwE6w2K6RLugUTL
Address: 1Digik7QKY5FZeqTVnWKjcMjocFM4kXuqy
Address: 1DigiGPdH6ZtKdicHVvGoBnCj4Tyki85wy


Sample usage showing ALL addresses in default directory:
user@debkav:~# cd /home/bct/vanitygen-master/
user@debkav:/home/bct/vanitygen-master# ./CHECKADDY.sh
Processing /home/bct/vanitygen-master/AFOUNDdir/address_easy_set1.txt file...
Number of addresses in file: 552
Processing /home/bct/vanitygen-master/AFOUNDdir/address_found_1Digi_1.txt file...
Number of addresses in file: 299
Processing /home/bct/vanitygen-master/AFOUNDdir/address_found_1Digi_2.txt file...
Number of addresses in file: 412
Processing /home/bct/vanitygen-master/AFOUNDdir/address_found_1TestAddy_1.txt file...
Number of addresses in file: 210
Processing /home/bct/vanitygen-master/AFOUNDdir/address_found_1TestAddy_2.txt file...
Number of addresses in file: 226
Processing /home/bct/vanitygen-master/AFOUNDdir/address_found_1TestAddy_3.txt file...
Number of addresses in file: 59
Processing /home/bct/vanitygen-master/AFOUNDdir/address_found_1TestAddy_4.txt file...
Number of addresses in file: 521
Processing /home/bct/vanitygen-master/AFOUNDdir/address.txt file...
Number of addresses in file: 101
Total number of addresses: 2380
Temp File Location - ( /home/bct/vanitygen-master/AFOUNDdir/tmp_Address_list.txt )

View results? (2380 found)
1) Yes
2) No
#?

Address: 1D1jcC1Scaaxss3btL7qwYaDck7WtM7Q9A
Address: 1D1P3SQ9eeitieWTHdeVmAKbKUJmQFQEyx
and so on if you chose Yes....
Listing will show ALL 2380 addresses, only showing 2 in this example as 2380 lines of text is absurdly long.
Otherwise, addresses can be viewed in the temporary file, tmp_Address_list.txt

No ad here, just an address: 1DiGicoiNTzaZDGiEtbRzxYsMg1PZ9F47s
1537785792
Hero Member
*
Offline Offline

Posts: 1537785792

View Profile Personal Message (Offline)

Ignore
1537785792
Reply with quote  #2

1537785792
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1537785792
Hero Member
*
Offline Offline

Posts: 1537785792

View Profile Personal Message (Offline)

Ignore
1537785792
Reply with quote  #2

1537785792
Report to moderator
digicoinuser
Legendary
*
Offline Offline

Activity: 1344
Merit: 1005



View Profile WWW
August 30, 2016, 03:01:07 AM
 #2

BTCump, anyone find this script useful yet?

No ad here, just an address: 1DiGicoiNTzaZDGiEtbRzxYsMg1PZ9F47s
klaaas
Hero Member
*****
Offline Offline

Activity: 798
Merit: 514


ACE - AD Campaign Experts -:-


View Profile
September 12, 2016, 09:42:54 PM
 #3

I do, Thanks.
It will give me a quick way to search for capital combinations in my case insensitive adres results

        ▄▄███████████▄▄
     ▄██▀▀           ▀▀██▄
   ▄█▀   ▄▄█████████▄▄   ▀█▄
  █▀  ▄███████▌ █▌ █████▄  ▀█
 █▀  ██  ██         ▀█████  ▀█
▐█  ██▀▀█████   ▄▄▄   █████  █▌
█▌ ▐██▄▄████▌  ████   █████▌ ▐█
█  ███  ████        ▄███████  █
█▌ ▐█▀▀████▌   ▄▄▄  ▀██████▌ ▐█
▐█  █▄▄████   ████   ▐█████  █▌
 █▄  ████           ▄█████  ▄█
  █▄  ▀████  ███  ██████▀  ▄█
   ▀█▄   ▀▀█████████▀▀   ▄█▀
     ▀██▄▄           ▄▄██▀
        ▀▀███████████▀▀
bitcore.
...The Future Is Now...
▄▄▄▄▄▄▄▄    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄     ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄

        ██
██████
        ██
        ██████
        ██
██████
        ██
        ██████
        ██
██████
                 ▄▄██
 ▄██████████████████████▄
█▀         ▄▄██▀▀   ██  ▀█
█▄     ▄▄██▀▀        ██  █
█▀█████████████████████████▄
█                          ▀█
█                           █
█              ▄████▄       █
█             ██▀  ▀██      █
█            ▐█▌    ▐████████
█             ██▄  ▄██      █
█              ▀████▀       █
█                           █
█▄                         ▄█
 ▀█████████████████████████▀
.
iOs
Android

        ██
        ██████
        ██
██████
        ██
        ██████
        ██
██████
        ██
        ██████


     ▄▄█████████▄▄
   ▄███▀▀     ▀▀███▄
  ███             ███
 ███               ███
▐██   ▐█▄   ▄███▄   ██▌
██▌    ███▄██████▀  ▐██
██▌    ▐████████    ▐██
▐██     ▐██████     ██▌
 ███   ▀█████▀     ███
  ███             ███
   ▀███▄▄     ▄▄███▀
     ▀▀█████████▀▀


     ▄▄█████████▄▄
   ▄███▀▀     ▀▀███▄
  ███             ███
 ███       ▄███    ███
▐██       █████     ██▌
██▌       ███       ▐██
██▌     ███████     ▐██
▐██       ███       ██▌
 ███      ███      ███
  ███             ███
   ▀███▄▄     ▄▄███▀
     ▀▀█████████▀▀


     ▄▄█████████▄▄
   ▄███▀▀     ▀▀███▄
  ███             ███
 ███         ▄▄█▌  ███
▐██      ▄▄█████    ██▌
██▌   ▄████████     ▐██
██▌  ▐████████      ▐██
▐██    ▀▀████       ██▌
 ███     ▀██       ███
  ███             ███
   ▀███▄▄     ▄▄███▀
     ▀▀█████████▀▀
Website
ANN
Block Explorer
digicoinuser
Legendary
*
Offline Offline

Activity: 1344
Merit: 1005



View Profile WWW
September 13, 2016, 05:47:48 PM
 #4

I do, Thanks.
It will give me a quick way to search for capital combinations in my case insensitive adres results

You're welcome and yes, the searches are case sensitive.  If you add the grep flag "-i" you can perform a case insensitive search but the script is currently setup to be accurate to your search terms case.

Feel free to modify it if you have a need for a change.  Smiley

No ad here, just an address: 1DiGicoiNTzaZDGiEtbRzxYsMg1PZ9F47s
PremiumCodeX
Hero Member
*****
Offline Offline

Activity: 854
Merit: 508


Miracles are not meant to be wished for


View Profile WWW
September 13, 2016, 06:41:46 PM
 #5

I could use it in a vanity address scraper as a part script, I guess. I will be able to test it on Linux soon since I am working on setting up a new Linux based web server. But as far as I remember, there is Bash for Windows too, just not by default. You can download it from the internet.


Ç̤̱͕̮̽̆͒̀͝ö̼̟̞̦̟͌̎̀͝d̲̜̫̘͛͂̽͜͠͝ȇ͉̣̝̰͎͑̓̂͝X̨̨̛̛͔̳̃͋̌ͅ

digicoinuser
Legendary
*
Offline Offline

Activity: 1344
Merit: 1005



View Profile WWW
September 13, 2016, 06:46:54 PM
 #6

I could use it in a vanity address scraper as a part script, I guess. I will be able to test it on Linux soon since I am working on setting up a new Linux based web server. But as far as I remember, there is Bash for Windows too, just not by default. You can download it from the internet.

Very nice and I wasn't aware of that.  Is it only for Windows 10?

No ad here, just an address: 1DiGicoiNTzaZDGiEtbRzxYsMg1PZ9F47s
PremiumCodeX
Hero Member
*****
Offline Offline

Activity: 854
Merit: 508


Miracles are not meant to be wished for


View Profile WWW
September 14, 2016, 06:27:58 PM
 #7

I could use it in a vanity address scraper as a part script, I guess. I will be able to test it on Linux soon since I am working on setting up a new Linux based web server. But as far as I remember, there is Bash for Windows too, just not by default. You can download it from the internet.

Very nice and I wasn't aware of that.  Is it only for Windows 10?

There are more than one Bash ports for Windows. I was using win-bash in the past. It is also on SourceForge. You can install it onto Microsoft Windows NT based systems. I have not tested whether it covers everything what you need, but it is the most complete Bash port for Windows that I have used so far and since it has GNU General Public License version 2.0 (GPLv2), it should not be too complicated to issue new tickets with your requests.


Ç̤̱͕̮̽̆͒̀͝ö̼̟̞̦̟͌̎̀͝d̲̜̫̘͛͂̽͜͠͝ȇ͉̣̝̰͎͑̓̂͝X̨̨̛̛͔̳̃͋̌ͅ

digicoinuser
Legendary
*
Offline Offline

Activity: 1344
Merit: 1005



View Profile WWW
September 14, 2016, 08:09:42 PM
 #8

There are more than one Bash ports for Windows. I was using win-bash in the past. It is also on SourceForge. You can install it onto Microsoft Windows NT based systems. I have not tested whether it covers everything what you need, but it is the most complete Bash port for Windows that I have used so far and since it has GNU General Public License version 2.0 (GPLv2), it should not be too complicated to issue new tickets with your requests.

Interesting, I will have to check it out!  My script doesn't utilize any special commands and is really only reliant on "grep" and reading simple passed arguments so I believe it would work.

Thanks for the information!  Smiley

No ad here, just an address: 1DiGicoiNTzaZDGiEtbRzxYsMg1PZ9F47s
OgNasty
Donator
Legendary
*
Offline Offline

Activity: 2674
Merit: 1345


I 💚 Bitcoin


View Profile WWW
September 14, 2016, 10:55:13 PM
 #9

Would be cool if you could add in something that would identify dictionary words and bring addresses to your attention that contained them.

digicoinuser
Legendary
*
Offline Offline

Activity: 1344
Merit: 1005



View Profile WWW
September 14, 2016, 11:12:02 PM
 #10

Would be cool if you could add in something that would identify dictionary words and bring addresses to your attention that contained them.

That sounds pretty neat and might be doable, would it be a user specified dictionary or a preset?

No ad here, just an address: 1DiGicoiNTzaZDGiEtbRzxYsMg1PZ9F47s
DarkStar_
Legendary
*
Offline Offline

Activity: 1092
Merit: 1331

:D


View Profile WWW
September 14, 2016, 11:54:24 PM
 #11

Would be cool if you could add in something that would identify dictionary words and bring addresses to your attention that contained them.

That sounds pretty neat and might be doable, would it be a user specified dictionary or a preset?
I would say a file with a lot of dictionary words in it. That way, they could add stuff if they wanted to and remove stuff, or they could leave it alone. That would have the best of both worlds, and should be similar difficulty in code vs preset list. Would be a nice feature for your script, and I might find a use in it.


Edit:
Would be cool if you could add in something that would identify dictionary words and bring addresses to your attention that contained them.

That sounds pretty neat and might be doable, would it be a user specified dictionary or a preset?
I would say a file with a lot of dictionary words in it. That way, they could add stuff if they wanted to and remove stuff, or they could leave it alone. That would have the best of both worlds, and should be similar difficulty in code vs preset list. Would be a nice feature for your script, and I might find a use in it.

Yes, and perhaps some sort of pruning for addresses without words in them?  I generate (86,400*145,000,000) addresses per day, every day.  I could be missing some amazing addresses simply because they aren't included in my search.  If there were a program that removed all the garbage addresses and kept the good ones so I didn't have an ever expanding file of billions of addresses to search through, surely some interesting vanity addresses would result.
This would be a cool idea as well. Might be hard to code though.

OgNasty
Donator
Legendary
*
Offline Offline

Activity: 2674
Merit: 1345


I 💚 Bitcoin


View Profile WWW
September 15, 2016, 01:27:11 AM
 #12

Would be cool if you could add in something that would identify dictionary words and bring addresses to your attention that contained them.

That sounds pretty neat and might be doable, would it be a user specified dictionary or a preset?
I would say a file with a lot of dictionary words in it. That way, they could add stuff if they wanted to and remove stuff, or they could leave it alone. That would have the best of both worlds, and should be similar difficulty in code vs preset list. Would be a nice feature for your script, and I might find a use in it.

Yes, and perhaps some sort of pruning for addresses without words in them?  I generate (86,400*145,000,000) addresses per day, every day.  I could be missing some amazing addresses simply because they aren't included in my search.  If there were a program that removed all the garbage addresses and kept the good ones so I didn't have an ever expanding file of billions of addresses to search through, surely some interesting vanity addresses would result.

digicoinuser
Legendary
*
Offline Offline

Activity: 1344
Merit: 1005



View Profile WWW
September 15, 2016, 02:02:01 AM
 #13

That sounds a little above and beyond what this script is meant to do since it only searches the output file that vanitygen generates.

A dictionary option could be provided to also bring to light addresses which have terms in them matching dictionary file words but I think a re-write of vanitygen would be required to achieve what Og is contemplating.  Wink

No ad here, just an address: 1DiGicoiNTzaZDGiEtbRzxYsMg1PZ9F47s
OgNasty
Donator
Legendary
*
Offline Offline

Activity: 2674
Merit: 1345


I 💚 Bitcoin


View Profile WWW
September 15, 2016, 02:46:09 AM
 #14

That sounds a little above and beyond what this script is meant to do since it only searches the output file that vanitygen generates.

A dictionary option could be provided to also bring to light addresses which have terms in them matching dictionary file words but I think a re-write of vanitygen would be required to achieve what Og is contemplating.  Wink

I agree it is a lot.  I don't think vanitygen needs to be touched though.  It actively saves addresses into a .txt file.  Addresses that didn't meet the dictionary criteria would only need to be deleted every few minutes.

digicoinuser
Legendary
*
Offline Offline

Activity: 1344
Merit: 1005



View Profile WWW
September 16, 2016, 08:44:53 PM
 #15

That sounds a little above and beyond what this script is meant to do since it only searches the output file that vanitygen generates.

A dictionary option could be provided to also bring to light addresses which have terms in them matching dictionary file words but I think a re-write of vanitygen would be required to achieve what Og is contemplating.  Wink

I agree it is a lot.  I don't think vanitygen needs to be touched though.  It actively saves addresses into a .txt file.  Addresses that didn't meet the dictionary criteria would only need to be deleted every few minutes.

Interesting, from the way you are speaking it sounds like you save every single address that vanitygen generates into a file?

In my scenario I only have addresses saved that match my search criteria and then I use my script to narrow down those addresses to ones that don't have trailing junk that could make the address look awkward.

No ad here, just an address: 1DiGicoiNTzaZDGiEtbRzxYsMg1PZ9F47s
PremiumCodeX
Hero Member
*****
Offline Offline

Activity: 854
Merit: 508


Miracles are not meant to be wished for


View Profile WWW
September 20, 2016, 06:16:38 PM
 #16

@digicoinuser, I have just read that Windows 10 integrated Bash that supports every feature that an Ubuntu's Bash supports. I do not wonder this fact much because it integrated Ubuntu, too lol. So, you may find the following discussion helpful WINDOWS 10 HAS NOW BASH. Your script should work fine on Windows 10 without additional dependencies from now on  Wink Also, you may use more advanced features on a Windows server, too, from now on.


Ç̤̱͕̮̽̆͒̀͝ö̼̟̞̦̟͌̎̀͝d̲̜̫̘͛͂̽͜͠͝ȇ͉̣̝̰͎͑̓̂͝X̨̨̛̛͔̳̃͋̌ͅ

OgNasty
Donator
Legendary
*
Offline Offline

Activity: 2674
Merit: 1345


I 💚 Bitcoin


View Profile WWW
September 20, 2016, 06:44:59 PM
 #17

That sounds a little above and beyond what this script is meant to do since it only searches the output file that vanitygen generates.

A dictionary option could be provided to also bring to light addresses which have terms in them matching dictionary file words but I think a re-write of vanitygen would be required to achieve what Og is contemplating.  Wink

I agree it is a lot.  I don't think vanitygen needs to be touched though.  It actively saves addresses into a .txt file.  Addresses that didn't meet the dictionary criteria would only need to be deleted every few minutes.

Interesting, from the way you are speaking it sounds like you save every single address that vanitygen generates into a file?

In my scenario I only have addresses saved that match my search criteria and then I use my script to narrow down those addresses to ones that don't have trailing junk that could make the address look awkward.

No, I currently do it the way you are saying, with specified search criteria.  There isn't a need for this script for me though, because I search for long vanities so I get maybe 1 or 2 per day.  If this script could delete out the crap allowing me to search for every address, it would significantly increase the number of long vanity addresses I was able to find.  Who knows, maybe I've found 25 letter vanity addresses and I just passed it by because it wasn't in my specified search.  That's what I'd love to see this script make possible.  Find long vanity addresses that aren't specified in search criteria.

digicoinuser
Legendary
*
Offline Offline

Activity: 1344
Merit: 1005



View Profile WWW
September 20, 2016, 07:06:25 PM
 #18

PremiumCodeX,
Thanks for the update, I have changed the OP to reflect this fact.  Smiley


OgNasty,
Sounds really cool but I don't have a need to do what you are requesting.  I'd be able to code it and would take that project on for a cost, but I would not be willing to do it for free.  Wink

No ad here, just an address: 1DiGicoiNTzaZDGiEtbRzxYsMg1PZ9F47s
digicoinuser
Legendary
*
Offline Offline

Activity: 1344
Merit: 1005



View Profile WWW
July 02, 2017, 08:52:13 AM
 #19

BTCump, I've recently utilized this script (unmodified) a couple times and it worked perfectly.  If you find it useful drop a message in this thread!

No ad here, just an address: 1DiGicoiNTzaZDGiEtbRzxYsMg1PZ9F47s
digicoinuser
Legendary
*
Offline Offline

Activity: 1344
Merit: 1005



View Profile WWW
July 18, 2017, 03:47:15 AM
 #20

I've updated the script to accomodate for extremely large outputs which could nearly fill the whole terminal history.  The new version is available at the pastebin link - CHECKADDY.sh - Vanitygen Output File Address Search Script.

There is a Yes / No selection after the addresses are aggregated similar to the below:

Code:
View results? (2380 found)
1) Yes
2) No

No ad here, just an address: 1DiGicoiNTzaZDGiEtbRzxYsMg1PZ9F47s
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!