Minor update

This commit is contained in:
Miroslav Stampar
2024-06-27 10:17:13 +02:00
parent 9a87f47777
commit f1ac7dc39b
3 changed files with 8 additions and 8 deletions

View File

@@ -4648,7 +4648,7 @@ def isAdminFromPrivileges(privileges):
return retVal
def findPageForms(content, url, raise_=False, addToTargets=False):
def findPageForms(content, url, raiseException=False, addToTargets=False):
"""
Parses given page content for possible forms (Note: still not implemented for Python3)
@@ -4666,7 +4666,7 @@ def findPageForms(content, url, raise_=False, addToTargets=False):
if not content:
errMsg = "can't parse forms as the page content appears to be blank"
if raise_:
if raiseException:
raise SqlmapGenericException(errMsg)
else:
logger.debug(errMsg)
@@ -4688,7 +4688,7 @@ def findPageForms(content, url, raise_=False, addToTargets=False):
forms = ParseResponse(filtered, backwards_compat=False)
except:
errMsg = "no success"
if raise_:
if raiseException:
raise SqlmapGenericException(errMsg)
else:
logger.debug(errMsg)
@@ -4715,7 +4715,7 @@ def findPageForms(content, url, raise_=False, addToTargets=False):
except (ValueError, TypeError) as ex:
errMsg = "there has been a problem while "
errMsg += "processing page forms ('%s')" % getSafeExString(ex)
if raise_:
if raiseException:
raise SqlmapGenericException(errMsg)
else:
logger.debug(errMsg)
@@ -4767,7 +4767,7 @@ def findPageForms(content, url, raise_=False, addToTargets=False):
if not retVal and not conf.crawlDepth:
errMsg = "there were no forms found at the given target URL"
if raise_:
if raiseException:
raise SqlmapGenericException(errMsg)
else:
logger.debug(errMsg)

View File

@@ -19,7 +19,7 @@ from lib.core.enums import OS
from thirdparty import six
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.8.6.12"
VERSION = "1.8.6.13"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)