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":