/zwiebelpfanne

Binds a Tor Hidden Service to a local TCP-port

Primary LanguageGoGNU General Public License v3.0GPL-3.0

zwiebelpfanne

zwiebelpfanne is a horrible compound of the German words for onion (Zwiebel) and socket (Pfanne, more like pan).

This tool binds a remote Tor Hidden Service (also known as .onion-Domain) to a local TCP-Port. This enable the use of Hidden Services for every application, not only those which speak SOCKS5.

A running Tor daemon is required.

Usage

Bind Facebook's Hidden Service to the localhost on port 1337. The --onion flag is the only required flag.

$ zwiebelpfanne --onion "facebookcorewwwi.onion:80"
zwiebelpfanne: facebookcorewwwi.onion:80 -> localhost:1337

Establish a SSH connection to a machine (perhaps behind a NAT) through Tor.

$ zwiebelpfanne --onion "someonionboi.onion:22" --listen "localhost:2222"
$ ssh -p 2222 user@localhost

Flags

  • --tor-socks5 specifies Tor's SOCKS5 daemon (default localhost:9050)
  • --listen specifies where zwiebelpfanne should be bound to (default localhost:1337)
  • --onion specifies the Tor Hidden Service zwiebelpfanne should connect to

Install

Go and a running Tor daemon are required.

go get github.com/geistesk/zwiebelpfanne
go build github.com/geistesk/zwiebelpfanne

ls ~/go/bin/zwiebelpfanne