Skip to content

Commit 5ad099c

Browse files
committed
Fixes #5479
1 parent 2187856 commit 5ad099c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.7.8.0"
23+
VERSION = "1.7.8.1"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/utils/search.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def _search(dork):
106106

107107
page = decodePage(page, responseHeaders.get(HTTP_HEADER.CONTENT_ENCODING), responseHeaders.get(HTTP_HEADER.CONTENT_TYPE))
108108

109-
page = getUnicode(page) # Note: if upper function call fails (Issue #4202)
109+
page = getUnicode(page) # Note: if decodePage call fails (Issue #4202)
110110

111111
retVal = [_urllib.parse.unquote(match.group(1) or match.group(2)) for match in re.finditer(GOOGLE_REGEX, page, re.I)]
112112

@@ -171,6 +171,8 @@ def _search(dork):
171171
errMsg = "unable to connect"
172172
raise SqlmapConnectionException(errMsg)
173173

174+
page = getUnicode(page) # Note: if decodePage call fails (Issue #4202)
175+
174176
retVal = [_urllib.parse.unquote(match.group(1).replace("&amp;", "&")) for match in re.finditer(regex, page, re.I | re.S)]
175177

176178
if not retVal and "issue with the Tor Exit Node you are currently using" in page:

0 commit comments

Comments
 (0)