torshare

command module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: GPL-3.0 Imports: 23 Imported by: 0

README

TorShare 🚀 ⚡

TorShare enables file sharing between two parties over Tor.

Design

TorShare needs a relay server which just relays information between two parties. The relay server can't see the data being relayed since the data is encrypted using a shared key agreed between two parties.

The sender starts a Tor hidden service for the file which needs to be transmitted and the address is sent to the receiver using the relay server. The hidden node address and the file name to be received is encrypted using a password agreed between both sender and receiver.

When the sender starts the hidden node and sends the info the relay, the relay will return a channel name of 6 word phrases. The receiver needs to know both the password and the channel name to receive the file.

The relay shouldn't be able to figure out anything related to the transfer. Since the file transfer is also done over the Tor network, the transfer is encrypted as well.

Once the transfer is completed, the receiver will send a message directly to sender and sender will teardown the Tor hidden service.

Installation

Latest version of Tor has to be installed before running the binary.

For ubuntu, instead of installing ubuntu's repos, see here and use Option two in that page to get the latest version of Tor.

Precompiled binaries can be downloaded from here.

Usage
$ torshare -h
Usage of ./dist/torshare.bin:
  -file string
    	File Path
  -relay string
    	Relay Address (default "https://torshare.sarat.dev")

Sending a file
$ torshare -file sample.jpeg
Enter Password: **********
2019/12/07 23:18:22 Channel Name(Has to be communicated with Receiver): luckily-slogan-twitter-haunt-joystick-earwig

Channel name and password has to be shared with the receiver

Receiving a file
$ torshare
Enter channel name: luckily-slogan-twitter-haunt-joystick-earwig
Enter Password: **********
2019/12/08 14:19:07 Starting download for Burton Stein - The New Cambridge History of India_ Vijayanagara-Cambridge University Press (1990).pdf
757.84 KiB / 9.04 MiB [===============>-----------------------------------]   8.19% 86.77 KiB/s 01m37s

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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