From e2a0f7a47bd5a5cc57f860c4db20d3febbced143 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Thu, 30 Oct 2008 23:20:14 +0000 Subject: [PATCH] Fix typo --- lib/core/option.py | 2 +- plugins/dbms/mysql.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/option.py b/lib/core/option.py index 134338243..29504e468 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -314,7 +314,7 @@ def __setHTTPUserAgent(): logger.debug(debugMsg) try: - fd = open(conf.userAgentsFile) + fd = open(conf.userAgentsFile, "r") except IOError: warnMsg = "unable to read HTTP User-Agent header " warnMsg += "file '%s'" % conf.userAgentsFile diff --git a/plugins/dbms/mysql.py b/plugins/dbms/mysql.py index e5b424fd5..77129ebfd 100644 --- a/plugins/dbms/mysql.py +++ b/plugins/dbms/mysql.py @@ -294,7 +294,7 @@ class MySQLMap(Fingerprint, Enumeration, Filesystem, Takeover): if not conf.extensiveFp: return True - # Check which version of MySQL , 5.0.0 it is + # Check which version of MySQL < 5.0.0 it is coercibility = inject.getValue("COERCIBILITY(USER())") if coercibility == "3":