diff options
author | Roger Dingledine <arma@torproject.org> | 2005-03-31 07:06:21 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-03-31 07:06:21 +0000 |
commit | ce4d64d9c67d40aef5b9632ac2373b9c981934ff (patch) | |
tree | 58f118840ed0a266c49227c0c6db965599debfe2 | |
parent | 83ad64365a738d05ae6f8d07299ac33ee09172ff (diff) | |
download | tor-ce4d64d9c67d40aef5b9632ac2373b9c981934ff.tar tor-ce4d64d9c67d40aef5b9632ac2373b9c981934ff.tar.gz |
hack exerciseserver into something i just ran.
svn:r3930
-rw-r--r-- | contrib/ExerciseServer.py | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/contrib/ExerciseServer.py b/contrib/ExerciseServer.py index 8ec3c8f8d..a4c1046a1 100644 --- a/contrib/ExerciseServer.py +++ b/contrib/ExerciseServer.py @@ -31,21 +31,30 @@ def runSocks4A(nonce, targetHost, targetPort, targetURL): s.close() return 1 -HOSTS_TO_TEST = [ "moria1", "ned", "tor26"] +HOSTS_TO_TEST = [ "serifos", "chaoscomputerclub", "NetWorkXXIII", "caethaver2", + "theoryorg", "samaire", "alrua", "ihopethisisunique", + "xolotl", "cacophony", "ghettocluster", "torserverzillion", + "ned", "richhomednsorg", "subzeronet"] EXITS_TO_TEST = [ "pvt", ] + +HOSTS_THAT_WORK = [ "serifos", "rodos", "moria2", "chaoscomputerclub"] +EXITS_THAT_WORK = [ "serifos", "rodos"] + TARGETS = [ ("belegost.mit.edu", "/"), ("seul.org", "/")] -N_CIRCS_TO_TRY = 100 + +N_CIRCS_TO_TRY = 5*len(HOSTS_TO_TEST) CIRCS_AT_A_TIME = 3 CIRC_LEN = 3 - HOST_STATUS = {} N_CIRCS_DONE = 0 def launchCirc(s): - htt = HOSTS_TO_TEST[:] - random.shuffle(htt) - path = htt[:CIRC_LEN-1]+[random.choice(EXITS_TO_TEST)] + htw = HOSTS_THAT_WORK[:] + random.shuffle(htw) + path = htw[:CIRC_LEN-2] + \ + [random.choice(HOSTS_TO_TEST)] + \ + [random.choice(EXITS_THAT_WORK)] circid = TorControl.extend_circuit(s, 0, path) for name in path: |