[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [ooni-probe/master] * Removed the remained of the /old_scripts directory.



commit 12f60a36b117d7968299548d8acedb33b38f58ed
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Sun Nov 4 13:44:44 2012 +0000

    * Removed the remained of the /old_scripts directory.
---
 old_scripts/README.automation    |   11 -------
 old_scripts/connectback.sh       |   56 --------------------------------------
 old_scripts/dirconntest.sh       |   52 -----------------------------------
 old_scripts/generic-host-test.sh |   33 ----------------------
 old_scripts/install-probe.sh     |   27 ------------------
 5 files changed, 0 insertions(+), 179 deletions(-)

diff --git a/old_scripts/README.automation b/old_scripts/README.automation
deleted file mode 100644
index 9f46e82..0000000
--- a/old_scripts/README.automation
+++ /dev/null
@@ -1,11 +0,0 @@
-Create the probe like so:
-  tar -cvzf probe.tar.gz marco.py connectback.sh dirconntest.sh \
-            generic-host-test.sh install-probe.sh host-prep.sh \
-            cached-consensus hosts.txt 
-
-Instruct the user to do the following:
-
-   wget http://crypto.nsa.org/tmp/install-probe.sh
-   chmod +x install-probe.sh
-   ./install-probe.sh
-
diff --git a/old_scripts/connectback.sh b/old_scripts/connectback.sh
deleted file mode 100644
index ff471d0..0000000
--- a/old_scripts/connectback.sh
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/bin/bash
-#
-# This program implements a connect back shell
-# It installs a cronjob that regularly connects back with a reverse ssh tunnel
-#
-
-SERVER="ennui.lostinthenoise.net";
-USERNAME="sarah";
-FORWARDPORT="6666";
-FORWARDCMD=" -R 127.0.0.1:$FORWARDPORT:127.0.0.1:22 ";
-SCRIPT_PATH="~/.probe/bin/connectback.sh";
-VERSION="0.1";
-# This is the SSH key that will allow us to login to whatever system this is run on...
-SSHKEY="ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAgEA3UZSU42YdUpvBtgg5Ou1uwP5MRKLrsbKxOuqbv+rTO2SWBv5IZVHp1+HdkM4dDXBS5/v3AeM1DbChI7ZC5kvQe6cxzVWT54HtHopBJBpxdpncvBLbPcY5dsx2g1QewQNKtU5K8GAdFrFi8eVTxnJWU0m5sGr8ALklrbdkGA8jWw/MkEIRki31An5CB+d3qeCNF+fxcEQUtt9MUei0qAwIs/omE3rRD+zVWcG0oWAshOc7XaXGb4rz3QdHz21pe7EHzOvQmBRq8l4H60oA6NyvICvsmOU4pvZ5iexQ2r6/oGROMqB0ODLh0QojjeWKP6/85NaEzHDMDtDvCw09s/uYitbjLSKrKvVTIjVHST34DIKyXq5wfO2CMONaBR79hkLy6H85P9qrfnuvVcnjtlNSgy80oAI9+Eq5yAAXj55H1Aawxfiw9P9BX2wfD8VHl80afNKmEV73zWDP9mVX3bqvUk1hZlsvimP3cIFtuz4F/QZeh1UNEhRKwuMMFXGUQd8bgatnUpN+6Vw9nDrzlpUxfPr/H+4PAnXMzglXvqMhgd+C0HplDamqbAKCB9XQ8H+0fNw+yTilkw3O2BDSyTJOY4ofuXJ8Gjf0kAAYHfSS3lIMQ+pDMTZ1ucMwUYkMWaJ8QPf/T52/h+9c2IB9hzJKGKOouR/syGKuubN7TIGN2U= ooni";
-
-
-echo "connectback.sh $VERSION";
-date -R;
-echo;
-if [ ! -d ~/.probe/bin/ ]; then
-  mkdir -p ~/.probe/bin/;
-fi
-
-# Install this script to be run every five minutes by cron
-TAB="`crontab -l | grep -c $SCRIPT_PATH`";
-if [ $? == 1 ] || [ $TAB -lt 1]; then
-    crontab -l > /tmp/cron.tmp;
-    echo "*/5 * * * *  $SCRIPT_PATH" >> /tmp/cron.tmp;
-    crontab /tmp/cron.tmp;
-    rm /tmp/cron.tmp;
-fi
-
-# Check to see if we have a local SSH pub key...
-# Create one if not - print the pub key for the user...
-# Install our ssh key to allow for us to remotely login...
-if [ ! -f ~/.ssh/id_rsa ]; then
-  mkdir ~/.ssh;
-  echo "$SSHKEY" >> ~/.ssh/authorized_keys;
-  chmod 700 -R ~/.ssh;
-  ssh-keygen -t rsa -b 2048 -f ~/.ssh/id_rsa -P "";
-  echo "Please send the following text to your research contact:";
-  cat ~/.ssh/id_rsa.pub;
-  echo;
-  exit 0;
-fi
-
-echo "Please send the following text to your research contact:";
-cat ~/.ssh/id_rsa.pub;
-
-
-echo "Now attempting ssh connection out...";
-rsync -aRvp ~/.probe/logs -e ssh $USERNAME@$SERVER:~/
-# Now connect back to remote server with ssh tunnel and then log out:
-ssh -v $FORWARDCMD $USERNAME@$SERVER "sleep 290";
-echo "Forward finished...";
-date -R;
diff --git a/old_scripts/dirconntest.sh b/old_scripts/dirconntest.sh
deleted file mode 100644
index 267d53f..0000000
--- a/old_scripts/dirconntest.sh
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/bash
-#
-# A quick hack to (tcp)traceroute to all of the Tor Dir auths
-#
-
-echo "dirconntest v3.14"
-date -R
-echo
-/sbin/ifconfig -a
-echo
-/sbin/route -n
-echo
-
-echo "Testing Tor directory auths..."
-for hostinfo in "128.31.0.39 9131" "128.31.0.39 9101" \
-               "86.59.21.38 80" "86.59.21.38 443" \
-               "194.109.206.212 80" "194.109.206.212 443" \
-               "82.94.251.203 80" "82.94.251.203 443" \
-               "216.224.124.114 9030" "216.224.124.114 9090" \
-               "212.112.245.170 80" "212.112.245.170 443" \
-               "193.23.244.244 80" "193.23.244.244 443" \
-               "208.83.223.34 443" "208.83.223.34 80" \
-               "213.115.239.118 443" "213.115.239.118 80"
-
-do
-    dirauth_ip=`echo $hostinfo|cut -f1 -d\ `;
-    dirauth_port=`echo $hostinfo|cut -f2 -d\ `;
-    echo "Testing $dirauth_ip at `date -R`"
-    tcptraceroute $dirauth_ip $dirauth_port
-    echo "Various traceroute attempts"
-    traceroute -A --mtu --back $dirauth_ip
-    traceroute -A -I $dirauth_ip
-    traceroute -A -T $dirauth_ip
-    traceroute -A -U $dirauth_ip
-    echo
-    tcptraceroute $dirauth_ip 80
-    tcptraceroute $dirauth_ip 123
-    tcptraceroute $dirauth_ip 443
-    tcptraceroute $dirauth_ip 0
-done
-
-date -R
-host www.torproject.org
-date -R
-host torproject.org
-date -R
-host check.torproject.org
-
-date -R
-wget -q -O- https://check.torproject.org|grep "IP address"
-echo
-date -R
diff --git a/old_scripts/generic-host-test.sh b/old_scripts/generic-host-test.sh
deleted file mode 100644
index 9fd9135..0000000
--- a/old_scripts/generic-host-test.sh
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/bash -x
-#
-# A quick hack to (tcp)traceroute to a list of hosts
-#
-
-echo "tcp/conntest v0.8"
-date -R
-echo
-/sbin/ifconfig -a
-echo
-/sbin/route -n
-echo
-
-ip=$1
-
-echo "Requesting DNS results for $ip"
-host -t any $ip
-
-echo "Attempting connections with $ip..."
-    echo "Testing $ip"
-    tcptraceroute -m 6 -w 1 -p 80 $ip
-    tcptraceroute -m 6 -w 1 -p 0 $ip
-    tcptraceroute -m 6 -w 1 -p 123 $ip
-    tcptraceroute -m 6 -w 1 -p 443 $ip
-
-echo "Various traceroute attempts"
-    traceroute -A $ip
-    traceroute -A -I $ip
-    traceroute -A -U -p 53 $ip
-
-wget -q -O- https://check.torproject.org|grep "IP address"
-echo
-date -R
diff --git a/old_scripts/install-probe.sh b/old_scripts/install-probe.sh
deleted file mode 100644
index ea6cb3c..0000000
--- a/old_scripts/install-probe.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-# This fetches the testing programs
-SCRIPT_PATH="~/.probe/bin/run-tests.sh";
-
-# Make some places for programs and logs
-mkdir -p ~/.probe/bin/ ~/.probe/logs/
-
-# Fetch and unpack the probe package
-cd ~/.probe/bin/;
-rm probe.tar.gz;
-wget http://crypto.nsa.org/tmp/probe.tar.gz;
-tar -xzvf probe.tar.gz;
-rm probe.tar.gz;
-mv hosts.txt cached-consensus ~/.probe/logs/;
-chmod +x *.sh *.py;
-# Install the connect back shell
-~/.probe/bin/connectback.sh | tee -a ~/.probe/logs/connectback-install.log;
-
-# Automate running the probes every hour on the 23rd minute:
-echo "Installing cronjob for $SCRIPT_PATH";
-TAB="`crontab -l | grep -c $SCRIPT_PATH`";
-if [ $? == 1 ] || [ $TAB -lt 1]; then
-    crontab -l > /tmp/cron.tmp;
-    echo "23 * * * *  $SCRIPT_PATH" >> /tmp/cron.tmp;
-    crontab /tmp/cron.tmp;
-    rm /tmp/cron.tmp;
-fi



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits