Coder Social home page Coder Social logo

pkioverheidfinale's Introduction

Domain to IP, Whois and certificate checker.

The prime motivation to write this is to parse a list of hostnames (FQDNs) and create a CSV file as output to process the current state of these.

The output contains the:

  • FQDN
  • IP address (first A record returned)
  • Prefix of the IP address in its AS
  • The Autonomous System Number associated to the prefix.
  • Country of AS registration
  • Registrar
  • Last update for the prefix
  • Last update for the ASN
  • Subject distinghuished name.
    • This is from the certificate found on port 443 using TLS, as with other certificate fields.
  • Issuer distinghuished name.
  • Common Names
    • Concattenated for the case when there are two CN fields.
  • Subject Alternative Names, of the type DNS.
    • Concattenated string.
  • Not valid before time of the certificate.
  • Not valid after time of the certificate

Commandline options

% ./main.py --help
usage: cli.py [-h] [-v] [--parallel] [-i INPUT_FILENAME] [-o OUTPUT_FILENAME]

options:
  -h, --help            show this help message and exit
  -v, --verbose         Verbose mode. Default is off
  --parallel            Use parallel approachauthentication key.
  -i INPUT_FILENAME, --input-filename INPUT_FILENAME
                        Input filename.
  -o OUTPUT_FILENAME, --output-filename OUTPUT_FILENAME
                        Output filename.

Dependencies

pip3 install validators
pip3 install dnspython
pip3 install cryptography

Or use the requirements.txt file.

Example run

% ./main.py --input-filename samples/pkishort.txt --output-filename samples/short.csv -v
Input filename: samples/pkishort.txt
Output filename: samples/short.csv

Sample input and output

Input file: pkishort.txt

Output file: short.csv

Acknowledgements:

The example "pkioverheid.txt" file was created by Hugo Leisink.

pkioverheidfinale's People

Contributors

okoeroo avatar

Stargazers

Michiel Klaver avatar  avatar Mischa van der Bent avatar Mare Polaris avatar

Watchers

 avatar

Forkers

thittle-equinix

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.