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

[or-cvs] [torflow/master 3/3] Sanitize input to tor-resolve



Author: John M. Schanck <john@xxxxxxxxxxx>
Date: Mon, 7 Jun 2010 18:15:50 -0400
Subject: Sanitize input to tor-resolve
Commit: 8d640bdd2b73079df787c833eb240860a84b5ee0

---
 NetworkScanners/ExitAuthority/soat.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/NetworkScanners/ExitAuthority/soat.py b/NetworkScanners/ExitAuthority/soat.py
index ae79591..8dabe5f 100755
--- a/NetworkScanners/ExitAuthority/soat.py
+++ b/NetworkScanners/ExitAuthority/soat.py
@@ -25,7 +25,6 @@ To run SoaT:
 __all__ = ["ExitNodeScanner", "DNSRebindScanner", "load_wordlist"]
 
 import atexit
-import commands
 import cookielib
 import copy
 import getopt
@@ -2601,7 +2600,8 @@ def decompress_response_data(response):
 
 def tor_resolve(address):
   ''' performs a DNS query explicitly via tor '''
-  return commands.getoutput("tor-resolve " + address)
+  import commands
+  return commands.getoutput("tor-resolve '%s'" % address)
 
 def int2bin(n):
   '''
-- 
1.6.5