BotNetzProvider.de Ein Security Blog über Honig-Töpfe (honeypots) , Bots und Bitcoin

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...
13Jul/150

Bitcoin Armory 101 – generate list of BTC addresses from command line

Armory-logo-cover

Using Armory as my primary Bitcoin Wallet I played around with the Armorys python scripts.

Goal: pre-generate a list of 100 BTC addresses from my personal Armory wallet and make accessible.

Using Armory With Python

Armory was built in Python because of its extraordinary flexibility and ease of extensibility. Even the parts of Armory that are implemented in C++ have been made accessible through familiar Python syntax using SWIG. Just about everything related to Bitcoin and Armory is accessible by importing armoryengine.py in the base BitcoinArmory directory. Both ArmoryQt.py and armoryd.py are just large python scripts that use that engine, and therefore all functionality needed for a full client implementation is available using just armoryengine.py.... [read more]

1. Find your Armory installation path:

By default, Armory is installed to the following locations:

Windows: C:\Program Files (x86)\Armory
Linux: /usr/lib/armory
OS X: /Applications/Armory.app

2. use this script to access your Wallet and get a new BTC addresses:

#! /usr/bin/python
import sys
sys.path.append("/usr/lib/armory/") # change this path if needed !
from armoryengine.ALL import *

wlt = PyBtcWallet().readWalletFile( CLI_ARGS[0] )
print wlt.getNextUnusedAddress().getAddrStr()

3. Now run this script 100 times to generate 100 BTC addresses
Use a small Bash script to get things done:

#!/bin/bash
for (( c=1; c<=100; c++ )) do echo "$c generated" /home/$user/armory_generate_addresses_from_wallet.py /media/$user/.armory/armory_XXXXXXX_.wallet | tee >> /home/$user/armory/BtcAddressGen.txt

done

4. Upload your text file to your webspace and use a small PHP script to show one address and delete it from the list. (protect it via basic auth and don't blame me for any RFI)

Example:
Selection_006

Liked it? Feel free to donate: 1H4amKeadr16UYRGkMz1nqFtiAxYV4zpyS

Kommentare (0) Trackbacks (0)

Zu diesem Artikel wurden noch keine Kommentare geschrieben.


Leave a comment

Noch keine Trackbacks.

/* google like button API */