This repository contains code corresponding to SiegeBreaker, which, consists of these major components:
- Client, who wishes to use Decoy Routing and reach a censored website.
- Overt-destination, a website, which censor thinks client wants to visit.
- Covert-destination, a website, which client really wants to visit.
- Proxy, a machine, who proxies client's traffic and fetches covert-destination for it.
- SDN Controller, which installs relevant redirection rules on SDN switches.
Building SiegeBreaker
These steps are for Ubuntu 18.04 and derivatives.
The Extremely Easy way
Following docker image has already dependencies installed. Thus we only need to build code.
docker pull himanshusagar/ubuntu_siegebreakercd /home/user/git clone https://github.com/himanshusagar/SiegeBreakerV2cd SiegeBreakerV2/chmod +x build_code.sh./build_code.sh
The Easy way
Clone a fresh copy of code. Install Dependencies and Build Code.
git clone https://github.com/himanshusagar/SiegeBreakerV2cd SiegeBreakerV2/chmod +x build_dep.sh && chmod +x build_code.sh./build_dep.sh && ./build_code.sh
The Not-so-easy way
Install all dependencies and code one by one.
Install Generic Dependencies
sudo apt update && sudo apt install gcc make python-minimal libssl-dev git python-pip
Install Seccure
sudo apt install libgmp-dev build-essential python-dev python-pip libmpfr-dev libmpc-devpip install seccure
Install Ryu
pip install ryu
Install libpcap
sudo apt install libpcap-dev
Build Signalling Mechanism
There are two signaling mechanisms in place - "smtplib/imap" and webmail. "smtplib/imap" is written in python for sending emails, when invoked by client code. Any of them can be used with client's c code.
Install webmail dependencies
- Install Chrome
- Install ChromeDriver
- Test whether chromedriver works by typing
$ chromedriverin terminal. pip install scapy selenium
Install "smtplib/imap" dependencies
pip install scapy easyimap
Build "C" Code
Build Client
cd maincd ./client/cmakecd ../../
Build proxy
cd ./proxy/make centermake single_conncd ../
Running SiegeBreaker
git clone https://github.com/himanshusagar/SiegeBreakerV2
As a Client
cd <repo_path>/main/client/csudo ./client.o OD_IP 443 URL TIMEOUT- Example Usage :
sudo ./client.o https://allowed_site.com 443 https://censored_site/100M 40 - By default, webmail singalling mechanism is used. This can be changed to "smtp/imap" based signaling in client.c by changing 'client_send.py' to 'smtp_client_send.py'
As a Proxy
cd <repo_path>/main/proxy/sudo ./center.o
As a Controller
cd <repo_path>/main/controller/ryu-manager controller_HP3500yl.py- Depending upon which signalling mechanism used in client setup, run corresponding email receiver in controller system.
Acknowledgements:
- base64.h used from https://github.com/superwills/NibbleAndAHalf