Giter Site home page Giter Site logo

asnlookup's Introduction

Standalone Usage

$ echo -e "8.8.8.8\n64.233.177.113\n31.13.65.1\n72.30.202.51"|asnlookup | column -t -s $'\t'
DEBUG:asnlookup.data_manager:file_age_in_hours: filename=asn.db hours=16
DEBUG:asnlookup.data_manager:maybe_update: func=db output_filename=asn.db max_age_in_hours=24 result=cached age=16
DEBUG:asnlookup.data_manager:file_age_in_hours: filename=asnames.json hours=16
DEBUG:asnlookup.data_manager:maybe_update: func=names output_filename=asnames.json max_age_in_hours=24 result=cached age=16
DEBUG:asnlookup.backend:reloading databases...
DEBUG:asnlookup.backend:reloading databases complete seconds=0.6
8.8.8.8         15169  8.8.8.0/24       GOOGLE - Google Inc.       US
64.233.177.113  15169  64.233.177.0/24  GOOGLE - Google Inc.       US
31.13.65.1      32934  31.13.65.0/24    FACEBOOK - Facebook, Inc.  US
72.30.202.51    26101  72.30.192.0/20   YAHOO-3 - Yahoo!           US

Server usage

$ asnlookup-server

Client usage

Install https://github.com/JustinAzoff/asnlookup-client-python

echo 8.8.8.8 | asnlookup-client

Docker

Using my public image:

docker run --rm -t -i -v `pwd`/data:/data -p 5555:5555 justinazoff/asnlookup

Building your own image

docker build -t asnlookup .
docker run --rm -t -i -v `pwd`/data:/data -p 5555:5555 asnlookup

asnlookup's People

Contributors

justinazoff avatar

Watchers

 avatar  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.