tor_multipath_voip/scripts/orig-client
Quentin Dufour 882196850f WIP script
2019-03-28 16:59:03 +01:00

8 lines
351 B
Bash
Executable file

#!/bin/bash
mkdir -p ./log
tor -f /etc/torrc > ./log/client-tor-stdout.log 2> ./log/client-tor-stderr.log &
sleep 2
mkdir -p ./shared
HS="`cat ./shared/onion_services.pub | head -n1`.onion"
measlat -h $HS -p 7500 -t tor # Used to wait for connections
measlat -h $HS -p 7500 -t tor -c $1 -i $2 -s $3 > ./res/orig.csv 2> ./log/client-measlat-stderr.log