9 lines
360 B
Text
9 lines
360 B
Text
|
#!/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 tcp > /dev/null 2>&1 # Used to wait for connections
|
||
|
measlat -h $HS -p 7500 -c $1 -i $2 -s $3 > ./res/xp2.csv 2> ./log/client-measlat-stderr.log
|