Skip to main content

An Onion Router descriptor generator

Project description

https://raw.githubusercontent.com/isislovecruft/leekspin/develop/doc/sphinx/source/_static/Loituma.gif

An Onion Router descriptor generator

Leekspin (á la the original internet masterpiece) is a small tool for generating mock Onion Router (OR) descriptors such as those used by relays, bridges, and Hidden Services (HS) within the Tor network in order to convey information about said relay, bridge, or Hidden Service to the Tor directory authorities, the bridge authority, Tor clients connecting to the network, and/or other relays within the network.

This tool is meant to be used to generate mock descriptors for testing or fuzzing other Tor libraries and programs, such as Stem, BridgeDB, and Tor. The keys, hash digests, and signatures generated within these mock descriptors are meant to be indistinguishable from those generated by real relays, bridges, and Hidden Services within the Tor network.

authors:

Isis Lovecruft <isis@torproject.org>

licence:

MIT licence, see LICENSE file for details

copyright:

© 2013-2015 Isis Lovecruft, The Tor Project, Inc.

Installing

The very simplest way, if you use pip, would be to do:

$ pip install leekspin

Otherwise, the standard setuptools commands work just fine:

$ git clone https://github.com/isislovecruft/leekspin.git
$ cd leekspin
$ python setup.py install --record installed-files.txt

Running

Leekspin will install a script named… leekspin. To use it to generate twenty-three Bridge descriptors, do:

$ leekspin --bridge -n 23

And to generate forty-two Relay descriptors:

$ leekspin --relay -n 42

And, likewise, to generate ten hidden service descriptors, do:

$ leekspin --hidden-service -n 10

Commandline Flags

$ leekspin -h
usage: leekspin [-h] [[-v | -q] [--version] [-r | -b | -hs] [-n DESCRIPTORS]

Generate a signed set of network-status, extra-info, and server descriptor
documents for mock Tor relays or bridges.

Optional arguments:

-h, --help

show this help message and exit

-v, --verbose

print information to stdout

-q, --quiet

don’t print anything

--version

print leekspin version and exit

Descriptor types:

-r, --relay

generate Relay descriptors

-b, --bridge

generate Bridge descriptors

-hs, --hidden-service

generate Hidden Service rendezvous descriptors

Required arguments:

-n DESCRIPTORS, --descriptors DESCRIPTORS

generate <n> sets of descriptors

Bugs

Should you decide to use this tool, and especially should you be so insane as to try hacking on it, you will likely find bugs. You may find bugs in Leekspin, BridgeDB, Stem, Tor’s specifications , and possibly even in Tor. Please, for math’s sake! Report them! The Tor developers will love you forever. You can report bugs on our issue tracker here .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

leekspin-2.0.0.zip (43.7 kB view details)

Uploaded Source

leekspin-2.0.0.tar.gz (35.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

leekspin-2.0.0-py2.7.egg (88.2 kB view details)

Uploaded Egg

File details

Details for the file leekspin-2.0.0.zip.

File metadata

  • Download URL: leekspin-2.0.0.zip
  • Upload date:
  • Size: 43.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for leekspin-2.0.0.zip
Algorithm Hash digest
SHA256 aa65dcb0d94f397e068b7cfe3048b0d22af3d530aedc9580e5ba961b9890a167
MD5 5ab7c150d67ceeb30580a36940d73329
BLAKE2b-256 9b1c20112ac6d7c9034ed9da2e4b0872789b5043f6131abd6e48107e09a0f48e

See more details on using hashes here.

File details

Details for the file leekspin-2.0.0.tar.gz.

File metadata

  • Download URL: leekspin-2.0.0.tar.gz
  • Upload date:
  • Size: 35.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for leekspin-2.0.0.tar.gz
Algorithm Hash digest
SHA256 d1343aac162cea306b5049438d68bdab717c7b1ca149b41e889ba809043b2b04
MD5 abd38b6985c9ca388e5fc3eb231f559f
BLAKE2b-256 1e2c4bc64103c95b15c09f5c9309ee89b7e65541648f55a445628457fac171a8

See more details on using hashes here.

File details

Details for the file leekspin-2.0.0-py2.7.egg.

File metadata

  • Download URL: leekspin-2.0.0-py2.7.egg
  • Upload date:
  • Size: 88.2 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for leekspin-2.0.0-py2.7.egg
Algorithm Hash digest
SHA256 938c3f2229522951992c206a39be402072ada5fb6164e2f2524d659636434e14
MD5 e2088e10fc5d9f624fece674c8059f85
BLAKE2b-256 1df1f73fdb51d161e3b4cf6969089104af8d131960b0beee6f78c9db814edcf2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page