update my scripts

This commit is contained in:
Quentin 2019-09-02 15:50:48 +02:00
parent a8411f8a7c
commit 1cb7203802
5 changed files with 7 additions and 13 deletions

View file

@ -64,4 +64,4 @@ COPY --from=builder /home/donar-build/out/torecho /usr/local/bin
COPY --from=builder /home/donar-build/tor2/src/app/tor /usr/local/bin/tor2
COPY --from=builder /home/donar-build/tor3/src/app/tor /usr/local/bin/tor3
COPY ./scripts/* /usr/local/bin/
COPY ./torrc_simple /etc/torrc
COPY ./torrc_* /etc/

View file

@ -2,6 +2,7 @@
mkdir -p $4/{log,shared,res}
donar -a dup2 -c -o $4/shared/onion_services.pub -r 9000 > $4/log/client-donar-stdout.log 2> $4/log/client-donar-stderr.log &
sleep 2
measlat -h 127.13.3.7 -p 9000 > /dev/null 2>&1 # Used to wait for connections
dump_circuits > $4/log/circuits.txt
measlat -h 127.13.3.7 -p 9000 -c $1 -i $2 -s $3 > $4/res/dup2.csv 2> $4/log/client-measlat-stderr.log

View file

@ -1,7 +1,6 @@
#!/bin/bash
mkdir -p $1/{log,shared}
cd $1/shared
pwd
( sleep 180; dump_circuits > ../log/server-circuits.txt ) &
donar -a dup2 -s -e 9000 > ../log/server-donar-stdout.log 2> ../log/server-donar-stderr.log &
udpecho -p 9000 > ../log/server-udpecho-stdout.log 2> ../log/server-udpecho-stderr.log

View file

@ -1,9 +1,7 @@
#!/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
mkdir -p $4/{log,shared,res}
donar -a naive -c -o ./shared/onion_services.pub -v -r 9000 > ./log/client-donar-stdout.log 2> ./log/client-donar-stderr.log &
sleep 2
measlat -h 127.13.3.7 -p 9000 > /dev/null 2>&1 # Used to wait for connections
measlat -h 127.13.3.7 -p 9000 -c $1 -i $2 -s $3 > ./res/naive.csv 2> ./log/client-measlat-stderr.log

View file

@ -1,9 +1,5 @@
#!/bin/bash
mkdir -p ./log
tor -f /etc/torrc > ./log/server-tor-stdout.log 2> ./log/server-tor-stderr.log &
sleep 2
mkdir -p ./shared
cd ./shared
pwd
mkdir -p $1/{log,shared,res}
cd $1/shared
donar -a naive -s -e 9000 -v > ../log/server-donar-stdout.log 2> ../log/server-donar-stderr.log &
udpecho -p 9000 > ../log/server-udpecho-stdout.log 2> ../log/server-udpecho-stderr.log