Some registries allow users to download zone data directly from CZDAP, and others provide FTP credentials that you can use to login to their servers. These tools allow you to programatically perform these two tasks:
This script requires Python 2.x plus the pycrypto
and requests
extension libraries.
Tested on Snow Leopard and Mountain Lion
OSX comes with Python preinstalled. To install the required extensions, issue the following commands:
sudo easy_install pip
sudo pip install --upgrade pycrypto requests
Tested on Ubuntu 13.04 Raring Ringtail
sudo apt-get install python-crypto python-requests
Tested on Windows 7
Download and configure the Python environment:
Install pycrypto
and requests
:
To confirm that you've installed the dependencies correctly, simply run the test and it should process the example data successfully:
cd credentials-decrypt/test
python test-decrypt.py
You should get the following sample output in basic CSV format:
server,username,password
ftp.download.com,com_ftp_access,specialpassword__22
ftp.download.biz,sally,password12345$
ftp.download.net,net_access,secretpassword456
To decrypt your own FTP credentials:
/credentials-decrypt
directory, make a copy of the config.sample.json
file and name it config.json
.czdap.private.key
.python decrypt.py
./zonedata-download
directory, make a copy of the config.sample.json
file and name it config.json
.python download.py
Contributions are welcome.