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

[or-cvs] r18536: {torflow} Fix for fixed url list. (torflow/trunk/NetworkScanners)



Author: mikeperry
Date: 2009-02-13 20:00:44 -0500 (Fri, 13 Feb 2009)
New Revision: 18536

Modified:
   torflow/trunk/NetworkScanners/soat.py
Log:

Fix for fixed url list.



Modified: torflow/trunk/NetworkScanners/soat.py
===================================================================
--- torflow/trunk/NetworkScanners/soat.py	2009-02-14 00:33:38 UTC (rev 18535)
+++ torflow/trunk/NetworkScanners/soat.py	2009-02-14 01:00:44 UTC (rev 18536)
@@ -535,8 +535,8 @@
     ret_result = TEST_SUCCESS
     self.tests_run += 1
 
-    n_tests = random.choice(xrange(1,len(self.scan_filetypes)+1))
-    filetypes = random.sample(self.scan_filetypes, n_tests)
+    n_tests = random.choice(xrange(1,len(self.targets)+1))
+    filetypes = random.sample(self.targets.keys(), n_tests)
     
     plog("INFO", "HTTPTest decided to fetch "+str(n_tests)+" urls of types: "+str(filetypes))