Skip to main content

Download utility for Tor

Project description

torboost

Download utility for Tor

About

This tool was designed specifically for downloading big files from onion services for analysis. It does so by retrieving chunks using multiple circuits, so the server must support byte ranges (Accept-Ranges, most of them do). If a given part fails (connection issues, chunk smaller than expected), it is being put back to the queue. Once all bits and pieces are ready they are combined, and the final result is saved in the ./downloads directory.

Warning

This way of utilizing Tor network reduces your anonymity!

Requirements

  • tor

Installation

$ pip install torboost

Usage

You may need to wait a while until all circuits are established:

$ torboost -u 'http://example.onion/data.zip'

If you want to combine the files before download is finished:

$ torboost --combine -u 'http://example.onion/data.zip'

Arguments

usage: torboost [-h] -u URL [-p TOR_PROCESSES] [--control-port-start CONTROL_PORT_START] [--socks-port-start SOCKS_PORT_START] [--timeout TIMEOUT] [--chunk-size CHUNK_SIZE] [--user-agent USER_AGENT] [--debug]
                [--combine]

Utility for downloading files from onion services using multiple Tor circuits

options:
  -h, --help            show this help message and exit
  -u URL, --url URL     Download URL (default: None)
  -p TOR_PROCESSES, --tor-processes TOR_PROCESSES
                        Number of Tor processes (default: 5)
  --control-port-start CONTROL_PORT_START
                        First port for Tor control (default: 10080)
  --socks-port-start SOCKS_PORT_START
                        First port for SOCKS (default: 9080)
  --timeout TIMEOUT     Timeout for Tor relay connection (default: 300)
  --chunk-size CHUNK_SIZE
                        Size of a single download block (in bytes) (default: 50000000)
  --user-agent USER_AGENT
                        User-Agent header (default: python-requests/2.27.1)
  --debug               Enable debugging mode (verbose output) (default: INFO)
  --combine             Combine all chunks downloaded so far (default: False)

Project details


Download files

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

Source Distribution

torboost-0.9.1.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file torboost-0.9.1.tar.gz.

File metadata

  • Download URL: torboost-0.9.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.12

File hashes

Hashes for torboost-0.9.1.tar.gz
Algorithm Hash digest
SHA256 dce037772829ce427f38d1964f2d8932816969a044c59d2570fd78420e23bb32
MD5 6d7eb9569476120c5c8d691f1b47e73d
BLAKE2b-256 2ad76788309343ad525e3dd53042f99e82014967ea189d9af35637f463e17e6d

See more details on using hashes here.

Supported by

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