THE

SPRAWL

  •  
  •  
  •  
  • projectsTor Nodes

    Download tor-nodes.py
    Size 372 bytes
    DateAugust 27th, 2011
    Version0.2

    Prints a list of IP addresses belonging to Tor nodes by querying a local Tor client. This script was designed to demonstrate the use of TorCtl library to control a Tor client using the Tor control protocol.

    Getting TorCtl

    Before you can use this script, you must obtain the Python TorCtl library. The library provides a programmatic interface to the Tor client control port. Using this library you can send commands, parse responses, and deliver events to and from the control port.

    You can get the latest development version as follows:

    git clone git://gitweb.torproject.org/pytorctl.git
    

    Running Tor Nodes

    To run Tor Nodes script simply copy the source file to the TorCtl directory above and run the source file:

    $ python tor-nodes.py
    92.73.158.92
    46.4.231.10
    94.180.224.147
    212.117.163.21
    94.142.241.138
    84.59.123.35
    94.50.142.212
    129.133.8.19
    94.75.228.29
    78.105.153.90
    ...
    

    You can adjust the behavior of the script to output additional information about the Tor nodes by editing the source. For example, in order to obtain router port and nickname edit the print orouter.ip line to something like this:

    print "%s:%s (%s)" % (router.ip, router.orport, router.nickname)
    

    The new output should look something like this:

    85.1.89.226:443 (Reno)
    202.49.254.23:8000 (cryptoplasmagondii)
    130.243.230.96:9001 (torrelay389752132)
    69.164.214.178:9001 (siasl)
    74.120.12.135:443 (zeller)
    95.25.54.23:9001 (Unnamed)
    90.0.33.24:443 (Unnamed)
    178.142.95.119:443 (blabla)
    178.33.32.123:50501 (Zwiebelschale)
    83.227.52.171:9001 (godzilla)
    87.106.249.118:443 (Evey)
    87.243.211.204:9001 (lavalledemisterios)
    84.2.35.110:9001 (Tor1HazaFi)
    95.208.118.33:443 (Comet82)
    77.223.37.217:9001 (Beaver)
    

    sprawlsimilar

    16 jan
    2010
    2600 magazine article

    My article on the Tor control protocol was published in the Winter 2009-2010 issue of the 2600 Magazine. Read more.

    tor control protocol

    Tor implements a highly customizable control protocol which can be used to tune almost all aspects of its operation. In this article you will learn how to fine tune Tor client's operation, query runtime information, as well as create circuits of arbitrary size. Read more.

    tor autocircuit

    Download tor-autocircuit-0.2.tar.gz
    Size 37.9 KB
    DateOctober 28th, 2010
    Version0.2

    Tor Autocircuit automatically creates Tor circuits according to a predefined set of rules (e.g. geolocation, number of hops, etc.). This script requires TorCtl python library Read more.


    sprawlcomments

    All original content on this site is copyright protected and licensed under Creative Commons - Attribution, NonCommercial, ShareAlike 4.0 International.

    π
    ///\oo/\\\