-
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
- Make sure you are in a virtualenv and have installed all requirements.
- 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) - 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
. - Start the webapp on port 6857:
python webapp/main.py
. - 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. - Go to
localhost:6857/round/1
and create a small flag - watch the stupid botmaster submit it to the bots and the bots submit it!
FOR OFIR: python ../../virtualenv-1.9/virtualenv.py env source env/bin/activate pip install -r requirements.txt