GithubHelp home page GithubHelp logo

csirtgadgets / dnsdb-py Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 2.0 36 KB

a simpler dnsdb python sdk

Home Page: http://api.dnsdb.info

License: Mozilla Public License 2.0

Python 100.00%
farsight dnsdb security

dnsdb-py's Introduction

Farsight dnsdb.info client

Getting Started

Commandline

$ export FARSIGHT_TOKEN=1234
$ pip install csirtg_dnsdb
$ dnsdb --search 172.217.6.206
$ dnsdb -q google.com

SDK

from pprint import pprint
import json
from csirtg_dnsdb.client import Client

p = ArgumentParser(
    description=textwrap.dedent('''\
    example usage:
        $ dnsdb -q 1.2.3.4
    '''),
    formatter_class=RawDescriptionHelpFormatter,
    prog='dnsdb',
)
p.add_argument('--token', help='specify api token', default=TOKEN)
p.add_argument('--search', '-q', help='search for something')
args = p.parse_args()

c = Client(token=args.token)

for r in c.search(args.search):
    print(json.dumps(r))

Getting Involved

There are many ways to get involved with the project. If you have a new and exciting feature, or even a simple bugfix, simply fork the repo, create some simple test cases, generate a pull-request and give yourself credit!

If you've never worked on a GitHub project, this is a good piece for getting started.

Development

Some of the tools we use:

COPYRIGHT AND LICENCE

Copyright (C) 2016 the CSIRT Gadgets Foundation

Free use of this software is granted under the terms of the Mozilla Public Licence v2 (MPL2). For details see the files LICENSE included with the distribution.

dnsdb-py's People

Contributors

wesyoung avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

chodonne renisac

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.