ofirnachum / tweetnet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tweetnet

  • stream_consumer python module for consumption of twitter stream

  • webapp is a basic flask app for flag and game control

  • .tweetnet is a file that should contain required environment variables for storing auth we don't check them into git, for obvious reason. Get them from another team member.

  • requirements.txt has all the requirements, do a virtualenv env && source env/bin/activate && pip install -r requirements.txt

Infrastructure prototype

  1. Make sure you are in a virtualenv and have installed all requirements.
  2. Install redis on your system, make sure you have an instance running on your local host on the default port (6379) (if you do, running redis-cli should give you a redis prompt)
  3. WARNING this will clean out a local redis database, so don't do it if you care about stuff in your redis without changing the TWEETNET_DEV_DB variable in webapp/main.py. BUT then run: python webapp/clear_db.py.
  4. Start the webapp on port 6857: python webapp/main.py.
  5. In another terminal window, run python round_runner.py 1 stupid_bot.py stupid_botmaster.py to start 10 benign users and 10 infected computers and 1 botmaster.
  6. Go to localhost:6857/round/1 and create a small flag
  7. watch the stupid botmaster submit it to the bots and the bots submit it!

EMBRACE THE JANK

FOR OFIR: python ../../virtualenv-1.9/virtualenv.py env source env/bin/activate pip install -r requirements.txt

About


Languages

Language:Python 86.9%Language:TeX 13.1%