These simple scripts allow a user to crawl the Mainline (bittorrent) DHT. This is not done in any intelligent way, nor are the scripts optimized. For now, only the node IDs (Session ID + IP + Port) are queried, the info hashes are generated randomly.
This simple DHT crawler is inspired by following defcon talk :
Crawling the DHT for fun and profit (Defcon 18)
http://www.defcon.org/images/defcon-18/dc-18-presentations/Wolchok/DEFCON-18-Wolchok-Crawling-Bittorrent-DHTS.pdf
The basic modules, especially the bencode module, come from the lightDHT repo :
https://github.com/drxzcl/lightdht