Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/oxzi/zwiebelpfanne

Binds a Tor Hidden Service to a local TCP-port
https://github.com/oxzi/zwiebelpfanne

hidden-service proxy tor

Last synced: 17 days ago
JSON representation

Binds a Tor Hidden Service to a local TCP-port

Awesome Lists containing this project

README

        

# 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](https://www.torproject.org/docs/onion-services.html.en)
(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.

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

ls ~/go/bin/zwiebelpfanne
```