GithubHelp home page GithubHelp logo

iplookup-tool's Introduction

IP Lookup Tool

Get geographical and domain registration data about given ip addresses Python Challenge for Swimlane!

Usage

The system is run through a commandline-like interface, with multiple commands for processing the data.

Commands

CommandDescriptionExample Usage
findFinds a given ip address given a regex, and stores it in a varfind 71\..
loadLoads a file into memory, containing ip addressesload list_of_ips.txt
printPrints info about a given query varprint $0
rdapLoads registration data for a given query varrdap $0
geoLoads geographic data for a given query vargeo $0
dataPrints the raw data of a given vardata $0
searchSearch a given query var's data for a given regexsearch $0 US.
scriptRuns a script file, more info about this in the scripts sectionscript test.script
saveSaves the data for a query var into a file, rawsave $0 data.txt
helpPrints help messagehelp
exitExits, same as CTRL + Cexit

Scripts

Scripts can be made an automated easily, and can have any extension. Each line of the script is a command you would normally run in the terminal, and will exit on any error

Example Script:

load ips.txt
find 77\..
geo $0
rdap $0
summary $0
search $0 KPN.
save $0 script_save.txt
exit

Scripts can be run from within the terminal with the command

script <filename>

Or Via commandline with

python DoScript.py <filename>

Installing/Running

To run this python challenge, you need a couple of dependencies, and must be running on a linux distribution. This is because certain python libraries used are not available on other platforms.

Dependencies

  • bs4
  • lxml
  • readchar
  • blessings

You can install these dependencies with

sudo apt-get install python-dev libxml2-dev libxslt1-dev zlib1g-dev
sudo pip install bs4 lxml readchar blessings

iplookup-tool's People

Contributors

spencer-hanson avatar

Stargazers

 avatar  avatar  avatar

Watchers

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.