Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Blockfinder enumerates network information for countries
Python
tree: 819b0f00f9

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
debian
CHANGELOG
LICENSE
Makefile
README
TODO
blockfinder
blockfinder.py
blockfindertest.py
test_data.py

README

blockfinder by Jacob Appelbaum <jacob@appelbaum.net>, dave b. <db@d1b.org>

"All that Blockfinder does is allow you to identify, contact and potentially
hack into every computer network in the world." - Rolling Stone, August 2010 [0]

Contrary to popular media claims, blockfinder is a simple text based console
tool that returns a list of netblocks for a given country.  It does this by
fetching the following lists of allocations:

    ftp://ftp.arin.net/pub/stats/arin/delegated-arin-latest
    ftp://ftp.ripe.net/ripe/stats/delegated-ripencc-latest
    ftp://ftp.afrinic.net/pub/stats/afrinic/delegated-afrinic-latest
    ftp://ftp.apnic.net/pub/stats/apnic/delegated-apnic-latest
    ftp://ftp.lacnic.net/pub/stats/lacnic/delegated-lacnic-latest

The list of ISO codes is ISO 3166-1 as found here:

    http://www.iso.org/iso/list-en1-semic-3.txt
    http://en.wikipedia.org/wiki/ISO_3166-1

blockfinder has two methods of operation:

    Update the lists of network object allocations
    Returning a list of all netblocks (or asn, etc) for a given country

To use blockfinder, first create or update the cache:

    blockfinder -i

Once you have a proper cache, search for the desired resource in the country
of your choice:

    ./blockfinder -v --ipv4 -t mm

[0] http://www.rollingstone.com/culture/news/17389/192242
Something went wrong with that request. Please try again.