Skip to content

yolothreat/utilitybelt

Repository files navigation

utilitybelt

Stories in Ready Circle CI Coverage Status Code Health

A Python library for being a CND Batman.

Batmans Utility Belt

Setup

You'll want to run script/bootstrap from time to time to update the GeoLiteCity database from Maxmind, although we have packaged a version with this.

Purpose

Utilitybelt provides common functions needed when writing security tools.

  • Reverse DNS
  • Geolocation
  • IP Range Calculators (Long, Between, is_RFC1918, etc)
  • Common Regular Expressions

We aim to provide more and welcome contributions.

Use

You can get utilitybelt like a sane human being using pip:

$ pip install utilitybelt

From there add a simple: `

import utilitybelt as ub

ub.is_reserved("1.1.1.1")

And away you go!

Development

You want to add some features? Awesome! First off, take a look at the contributing guide.

Setup

You'll want to run script/bootstrap from time to time to update the GeoLiteCity database from Maxmind, although we have packaged a version with this. In Linux (Ubuntu), you may need to install libgeoip-dev.

Tests

Super simple. After you've run pip install, just use script/test to run the test suite.


This product includes GeoLite data created by MaxMind, available from maxmind.com.

About

A Python library for being a CND Batman....

Resources

License

Stars

Watchers

Forks

Packages

No packages published