diff --git a/scripts/2021/donaralt@.service b/scripts/2021/donaralt@.service new file mode 100644 index 0000000..9bce6a1 --- /dev/null +++ b/scripts/2021/donaralt@.service @@ -0,0 +1,7 @@ +[Unit] +Description=donaralt + +[Service] +ExecStart=/usr/local/bin/donaralt %i +WorkingDirectory=/root/donaralt/ + diff --git a/scripts/2021/torhsopt b/scripts/2021/torhsopt new file mode 100755 index 0000000..03b61a8 --- /dev/null +++ b/scripts/2021/torhsopt @@ -0,0 +1,53 @@ +#!/bin/bash + +while true; do +SOCK_PORT=$((9000+$1)) +CONTROL_PORT=$((9100+$1)) +LOCAL_PORT=$((9200+$1)) + +echo "tor daemon serv" +/usr/local/bin/tor2 \ + --hush \ + --UseEntryGuards 0 \ + --SocksPort 0 \ + --ControlPort $CONTROL_PORT \ + --DataDirectory /tmp/tor$CONTROL_PORT & + +echo "tor client serv" +/usr/local/bin/tor2 \ + --hush \ + --UseEntryGuards 0 \ + --SocksPort "127.0.0.1:$SOCK_PORT IsolateDestPort IsolateDestAddr IsolateClientAddr" \ + --DataDirectory /tmp/tor$SOCK_PORT & + +sleep 5 + +echo "measlat serv" +rm -f os_${LOCAL_PORT}.{pub,priv} +/usr/local/bin/measlat \ + -l \ + -t tor \ + -q $CONTROL_PORT \ + -p $LOCAL_PORT \ + -c 135000 \ + -i 40 \ + -s 172 \ + -m torhsopt & + +until [ -f os_${LOCAL_PORT}.pub ]; do sleep 1; done + +echo "measlat cli" +/usr/local/bin/measlat \ + -t tor \ + -q $SOCK_PORT \ + -h $(cat os_${LOCAL_PORT}.pub).onion \ + -p $LOCAL_PORT \ + -c 135000 \ + -i 40 \ + -s 172 \ + -m torhsopt + +kill -9 $(jobs -p) + +sleep 5 +done diff --git a/scripts/2021/torhsopt@.service b/scripts/2021/torhsopt@.service new file mode 100644 index 0000000..5c835e8 --- /dev/null +++ b/scripts/2021/torhsopt@.service @@ -0,0 +1,7 @@ +[Unit] +Description=torhsopt + +[Service] +ExecStart=/usr/local/bin/torhsopt %i +WorkingDirectory=/root/torhsopt/ +