mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-08 17:53:47 +03:00
Minor language fix
This commit is contained in:
parent
941b2387c0
commit
eaacbe0b12
|
@ -2739,7 +2739,7 @@ def decodeIntToUnicode(value):
|
||||||
|
|
||||||
def unhandledExceptionMessage():
|
def unhandledExceptionMessage():
|
||||||
"""
|
"""
|
||||||
Returns detailed message about occured unhandled exception
|
Returns detailed message about occurred unhandled exception
|
||||||
"""
|
"""
|
||||||
|
|
||||||
errMsg = "unhandled exception in %s, retry your " % VERSION_STRING
|
errMsg = "unhandled exception in %s, retry your " % VERSION_STRING
|
||||||
|
@ -3372,7 +3372,7 @@ def evaluateCode(code, variables=None):
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
raise
|
raise
|
||||||
except Exception, ex:
|
except Exception, ex:
|
||||||
errMsg = "an error occured while evaluating provided code ('%s'). " % ex
|
errMsg = "an error occurred while evaluating provided code ('%s'). " % ex
|
||||||
raise SqlmapGenericException(errMsg)
|
raise SqlmapGenericException(errMsg)
|
||||||
|
|
||||||
def serializeObject(object_):
|
def serializeObject(object_):
|
||||||
|
|
|
@ -495,7 +495,7 @@ def _setCrawler():
|
||||||
status = '%d/%d links visited (%d%%)' % (i + 1, len(targets), round(100.0 * (i + 1) / len(targets)))
|
status = '%d/%d links visited (%d%%)' % (i + 1, len(targets), round(100.0 * (i + 1) / len(targets)))
|
||||||
dataToStdout("\r[%s] [INFO] %s" % (time.strftime("%X"), status), True)
|
dataToStdout("\r[%s] [INFO] %s" % (time.strftime("%X"), status), True)
|
||||||
except Exception, ex:
|
except Exception, ex:
|
||||||
errMsg = "problem occured while crawling at '%s' ('%s')" % (target, ex)
|
errMsg = "problem occurred while crawling at '%s' ('%s')" % (target, ex)
|
||||||
logger.error(errMsg)
|
logger.error(errMsg)
|
||||||
|
|
||||||
def _setGoogleDorking():
|
def _setGoogleDorking():
|
||||||
|
@ -625,7 +625,7 @@ def _findPageForms():
|
||||||
status = '%d/%d links visited (%d%%)' % (i + 1, len(targets), round(100.0 * (i + 1) / len(targets)))
|
status = '%d/%d links visited (%d%%)' % (i + 1, len(targets), round(100.0 * (i + 1) / len(targets)))
|
||||||
dataToStdout("\r[%s] [INFO] %s" % (time.strftime("%X"), status), True)
|
dataToStdout("\r[%s] [INFO] %s" % (time.strftime("%X"), status), True)
|
||||||
except Exception, ex:
|
except Exception, ex:
|
||||||
errMsg = "problem occured while searching for forms at '%s' ('%s')" % (target, ex)
|
errMsg = "problem occurred while searching for forms at '%s' ('%s')" % (target, ex)
|
||||||
logger.error(errMsg)
|
logger.error(errMsg)
|
||||||
|
|
||||||
def _setDBMSAuthentication():
|
def _setDBMSAuthentication():
|
||||||
|
|
|
@ -140,7 +140,7 @@ def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardExceptio
|
||||||
try:
|
try:
|
||||||
thread.start()
|
thread.start()
|
||||||
except threadError, errMsg:
|
except threadError, errMsg:
|
||||||
errMsg = "error occured while starting new thread ('%s')" % errMsg
|
errMsg = "error occurred while starting new thread ('%s')" % errMsg
|
||||||
logger.critical(errMsg)
|
logger.critical(errMsg)
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ def _comparison(page, headers, code, getRatioValue, pageLength):
|
||||||
|
|
||||||
if kb.nullConnection and pageLength:
|
if kb.nullConnection and pageLength:
|
||||||
if not seqMatcher.a:
|
if not seqMatcher.a:
|
||||||
errMsg = "problem occured while retrieving original page content "
|
errMsg = "problem occurred while retrieving original page content "
|
||||||
errMsg += "which prevents sqlmap from continuation. Please rerun, "
|
errMsg += "which prevents sqlmap from continuation. Please rerun, "
|
||||||
errMsg += "and if the problem persists turn off any optimization switches"
|
errMsg += "and if the problem persists turn off any optimization switches"
|
||||||
raise SqlmapNoneDataException(errMsg)
|
raise SqlmapNoneDataException(errMsg)
|
||||||
|
|
|
@ -434,7 +434,7 @@ class Connect(object):
|
||||||
conn.fp._sock.close()
|
conn.fp._sock.close()
|
||||||
conn.close()
|
conn.close()
|
||||||
except Exception, msg:
|
except Exception, msg:
|
||||||
warnMsg = "problem occured during connection closing ('%s')" % msg
|
warnMsg = "problem occurred during connection closing ('%s')" % msg
|
||||||
logger.warn(warnMsg)
|
logger.warn(warnMsg)
|
||||||
|
|
||||||
except urllib2.HTTPError, e:
|
except urllib2.HTTPError, e:
|
||||||
|
|
|
@ -54,7 +54,7 @@ class HTTPSConnection(httplib.HTTPSConnection):
|
||||||
else:
|
else:
|
||||||
sock.close()
|
sock.close()
|
||||||
except ssl.SSLError, errMsg:
|
except ssl.SSLError, errMsg:
|
||||||
logger.debug("SSL connection error occured ('%s')" % errMsg)
|
logger.debug("SSL connection error occurred ('%s')" % errMsg)
|
||||||
|
|
||||||
if not success:
|
if not success:
|
||||||
raise SqlmapConnectionException("can't establish SSL connection")
|
raise SqlmapConnectionException("can't establish SSL connection")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user