This repository contains the source code for the WF defense described in the following paper:
Break-Pad: Effective Padding Machines for Tor with Break Burst Padding
- Modified Tor: download modified Tor software at
https://pan.baidu.com/s/1-b3BHwM7Me1z8RXFgls2_A
(access code: h7ew), and runmake and make install
command to install Tor. - Python Script: Clone this repo using
git clone https://github.com/beenhuang/padding-machine.git
command. - GoodEnough Dataset: download Pulls's GoodEnough dataset at
https://dart.cse.kau.se/goodenough/goodenough-feb-2020.zip
and put the datset in the "data" folder.
- Run Simulator:
./simulation/run_simulation.py --in standard --out "defended trace" --machine "machine_name"
- Bandwidth Overhead:
./evaluation/overhead.py --in "defended trace" --out "result"
- CUMUL:
./evaluation/cumul/run_cumul.py --in "defended trace" --out "result"
- k-FP:
./evaluation/k-FP/run_kFP.py --in "defended trace" --out "result"
- DF:
./evaluation/df/run_df.py --in "defended trace" --out "result"
OR, You can run the october.sh
file, and other files are in the "run" directory.
- Get Original Trace: run the
./simulation/origin-trace.py --in standard --out "original trace" --maxlength 5000
command at the base directory. - Distirbution Fitting: run the
./burst.py --in "original trace" --out "result"
command in the "hyperparameter" folder.
email: [email protected]
Any discussions, suggestions, and questions are welcome!