Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e7d448c

Browse files
committed
Minor update regarding #3129
1 parent 694b5bb commit e7d448c

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

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

lib/parse/html.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
from xml.sax.handler import ContentHandler
1111

12+
from lib.core.common import urldecode
1213
from lib.core.common import parseXmlFile
1314
from lib.core.data import kb
1415
from lib.core.data import paths
@@ -26,6 +27,7 @@ def __init__(self, page):
2627
self._dbms = None
2728
self._page = (page or "")
2829
self._lower_page = self._page.lower()
30+
self._urldecoded_page = urldecode(self._page)
2931

3032
self.dbms = None
3133

@@ -47,7 +49,7 @@ def startElement(self, name, attrs):
4749
keywords = sorted(keywords, key=len)
4850
kb.cache.regex[regexp] = keywords[-1].lower()
4951

50-
if kb.cache.regex[regexp] in self._lower_page and re.search(regexp, self._page, re.I):
52+
if kb.cache.regex[regexp] in self._lower_page and re.search(regexp, self._urldecoded_page, re.I):
5153
self.dbms = self._dbms
5254
self._markAsErrorPage()
5355

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ c9a56e58984420a5abb7a3f7aadc196d lib/core/optiondict.py
4747
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4848
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
4949
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
50-
dcdc0a7179010067fdbf8ad1fa9ab09e lib/core/settings.py
50+
cd402ab35a20d44b7404bcc18f652a16 lib/core/settings.py
5151
0dfc2ed40adf72e302291f6ecd4406f6 lib/core/shell.py
5252
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5353
6306284edcccc185b2df085438572b0d lib/core/target.py
@@ -62,7 +62,7 @@ e772deb63270375e685fa5a7b775c382 lib/core/wordlist.py
6262
fb2e2f05dde98caeac6ccf3e67192177 lib/parse/configfile.py
6363
3794ff139869f5ae8e81cfdbe5714f56 lib/parse/handler.py
6464
6bab53ea9d75bc9bb8169d3e8f3f149f lib/parse/headers.py
65-
33f21b11b7963062df8fa2292229df80 lib/parse/html.py
65+
1bc6ddaeada0f2425fa9aae226854ca8 lib/parse/html.py
6666
1e5532ede194ac9c083891c2f02bca93 lib/parse/__init__.py
6767
ec4e56bbb1349176b2a22e0b99ba6a55 lib/parse/payloads.py
6868
492654567e72b6a14584651fcd9f16e6 lib/parse/sitemap.py

0 commit comments

Comments
 (0)