Giter VIP home page Giter VIP logo

haps's Introduction

Notes

I implemented a Tor check on the upload page, but cannot test it while the server is running on localhost. I'm not sure if there exists a way for me to test it until it's running on a proper server.

Currently working on file queue that will be send files to remote file server (Tor hidden service), along with a bunch of randomly generated garbage files to make end-point correlation attacks more difficult.

Quickstart

To get started with working on this code, first clone the repo

git clone [email protected]:handsomeransoms/haps.git

You will need to install Python library dependencies to use this code. To do this easily and without cluttering up your system, use virtualenv. Here's how to setup virtualenv:

  1. cd into the directory of the cloned repo
  2. virtualenv env creates a new virtualenv and installs Python into it.
  3. . env/bin/activate activates the virtualenv. You will see (env) prepended to your bash prompt.
  4. Install the dependencies

Now you need to start beanstalkd, run the worker pythons script, and run the Flask application. In your shell, first launch beanstalkd as a deamon (-d flag). We're using the default IP/port combo (localhost/11300), so don't worry about passing them in.

  1. beanstalkd -d
  2. python bs-worker.py
  3. In a separate shell, python quickstart.py. Navigate to [127.0.0.1:5000] in your browser. Try uploading a file, see it appear in the output of bs-worker.py

Dependencies

You will need to install these: We recommend using pip: easy_install pip, and installing into your virtualenv.

  1. Flask web microframework: pip install flask
  2. Beanstalkd, a work queue. Install instructions here On a mac, you can use Homebrew: brew install beanstalkd
  3. PyYAML (dependency of the Python beanstalk library): pip install pyyaml
  4. pip install beanstalkc Python library for beanstalkd.

haps's People

Contributors

garrettr avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.