Coder Social home page Coder Social logo

rbairwell / czdap-tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fourkitchens/czdap-tools

0.0 2.0 0.0 333 KB

Tools for downloading zone data and authentication credentials from ICANN's CZDS application.

License: MIT License

Python 100.00%

czdap-tools's Introduction

CZDAP Tools

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:

  • Decrypt FTP credentials downloaded from ICANN's CZDAP application.
  • Download zone data directly using the CZDAP API.

Installation

This script requires Python 2.x plus the pycrypto and requests extension libraries.

Mac OSX

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

Linux

Tested on Ubuntu 13.04 Raring Ringtail

sudo apt-get install python-crypto python-requests

Windows

Tested on Windows 7

Download and configure the Python environment:

  • Download Python version 2.7.x from the main download page.
  • Run the installer and follow the installation instructions.

Install pycrypto and requests:

Decrypting credentials

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:

  1. Visit CZDAP and copy your token. You can find it on your user profile page, under the tab "API".
  2. In the /credentials-decrypt directory, make a copy of the config.sample.json file and name it config.json.
  3. Edit config.json and overwrite the "token" parameter with the your unique token.
  4. Copy your private key into this directory and make sure it's named czdap.private.key.
  5. Run python decrypt.py.

Downloading zone data

  1. Visit CZDAP and copy your token. You can find it on your user profile page.
  2. In the /zonedata-download directory, make a copy of the config.sample.json file and name it config.json.
  3. Edit config.json and overwrite the "token" parameter with the your unique token.
  4. Run python download.py

Contributing

Contributions are welcome.

czdap-tools's People

Contributors

marktheunissen avatar rupl avatar megahall avatar

Watchers

Richard Bairwell avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.