mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-22 23:49:47 -05:00
finished bundling libraries
This commit is contained in:
parent
8ffa569094
commit
6c00587edc
@ -4,11 +4,7 @@ A program to securely share a file of any size with someone, designed to be run
|
|||||||
|
|
||||||
## Quick Start
|
## Quick Start
|
||||||
|
|
||||||
Boot to Tails, setting an administrator password. Clone this repository. Install the dependencies:
|
You need to run this script as root, so make sure you set an administrator password when you boot Tails. Run onionshare.py, and pass it a filename. It will look something like this:
|
||||||
|
|
||||||
sudo apt-get install python-flask
|
|
||||||
|
|
||||||
Then run onionshare.py, and pass it a filename. It will look something like this:
|
|
||||||
|
|
||||||
amnesia@amnesia:~/Persistent/code/onionshare$ sudo ./onionshare.py ~/Persistent/file_to_send.gpg
|
amnesia@amnesia:~/Persistent/code/onionshare$ sudo ./onionshare.py ~/Persistent/file_to_send.gpg
|
||||||
[sudo] password for amnesia:
|
[sudo] password for amnesia:
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import os, sys, subprocess, time, hashlib
|
import os, sys, subprocess, time, hashlib, inspect
|
||||||
from random import randint
|
from random import randint
|
||||||
|
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
|
|
||||||
|
lib_path = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))+'/lib'
|
||||||
|
sys.path.append(lib_path)
|
||||||
|
|
||||||
from flask import Flask, Markup, Response, request, make_response, send_from_directory
|
from flask import Flask, Markup, Response, request, make_response, send_from_directory
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user