bridgetool

command
v0.2.0-dev.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: AGPL-3.0 Imports: 25 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command bridgetool is the traffic generator and the "internet" server of the bridge lab (scripts/e2e/bridge.sh).

bridgetool serve -listen ADDR:PORT [-listen ...]       the far side: a tiny line protocol, see below
bridgetool get   -socks H:P -target H:P -n BYTES -seed S   download BYTES of the stream S through a SOCKS5 proxy, check sha256
bridgetool put   -socks H:P -target H:P -n BYTES -seed S   upload them, the far side answers with the sha256 it saw
bridgetool echo  -socks H:P -target H:P -secs N -every D   one TCP session of N seconds, a line every D, each must come back
bridgetool hold  -socks H:P -target H:P -n N -secs S -every D   N such sessions at once (the entry counts N people)
bridgetool idle  -socks H:P -target H:P -secs N            a session that says nothing for N seconds, then one line
bridgetool par   -socks H:P -target H:P -n WORKERS -bytes B -rounds R   WORKERS parallel get+put of B bytes, R times each
bridgetool who   -socks H:P -target H:P                    the address the far side saw
bridgetool impostor -listen ADDR:PORT -log FILE            a TLS site with a certificate of its own that logs what it sees
bridgetool probesite -listen ADDR:PORT -cert FILE          the sites the panel's own probes ask through a tunnel (generate_204,
                                                           trace, a 64 KiB download), under their real names; the certificate is written to FILE

The far side speaks one request line per connection: "GET n seed" (n bytes of the stream, then it closes), "PUT n seed" (then n bytes from the client; it answers "OK n sha256\n"), "ECHO" (echoes what it reads), "WHO" (answers the peer's address). The stream of a seed is ChaCha8 output, so both ends hash the same bytes without a file. Every client command prints one line ("ok ..." or "FAIL ...") and exits 0 or 1. Nothing here talks to any address it was not given.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL