Skip to content

Commit d1426a0

Browse files
committed
Fixes #3408
1 parent 83a1b9b commit d1426a0

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

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.12.14"
22+
VERSION = "1.2.12.15"
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/request/connect.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -994,9 +994,10 @@ def _adjustParameter(paramString, parameter, newValue):
994994
token.value = "".join(chr(int(_)) for _ in match.group(1).replace(' ', "").split(','))
995995

996996
if not token:
997-
if conf.csrfUrl != conf.url and code == httplib.OK:
997+
if conf.csrfUrl and conf.csrfToken and conf.csrfUrl != conf.url and code == httplib.OK:
998998
if headers and "text/plain" in headers.get(HTTP_HEADER.CONTENT_TYPE, ""):
999-
token = page
999+
token.name = conf.csrfToken
1000+
token.value = page
10001001

10011002
if not token and conf.cj and any(re.search(conf.csrfToken, _.name, re.I) for _ in conf.cj):
10021003
for _ in conf.cj:

txt/checksum.md5

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py
4949
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
5050
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
5151
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
52-
0c0d9162f3ec64208c203e7b7e7aaf01 lib/core/settings.py
52+
622797ad77a9cff4effe49b046170d50 lib/core/settings.py
5353
a971ce157d04de96ba6e710d3d38a9a8 lib/core/shell.py
5454
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5555
1581be48127a3a7a9fd703359b6e7567 lib/core/target.py
@@ -71,7 +71,7 @@ f6b5957bf2103c3999891e4f45180bce lib/parse/payloads.py
7171
30eed3a92a04ed2c29770e1b10d39dc0 lib/request/basicauthhandler.py
7272
2b81435f5a7519298c15c724e3194a0d lib/request/basic.py
7373
859b6ad583e0ffba154f17ee179b5b89 lib/request/comparison.py
74-
9eb0cc48e7e4779e44f1641aa7d39a4d lib/request/connect.py
74+
40c4cc791ec657b612ccecf5b3241651 lib/request/connect.py
7575
dd4598675027fae99f2e2475b05986da lib/request/direct.py
7676
2044fce3f4ffa268fcfaaf63241b1e64 lib/request/dns.py
7777
98535d0efca5551e712fcc4b34a3f772 lib/request/httpshandler.py
@@ -478,7 +478,7 @@ d989813ee377252bca2103cea524c06b xml/banner/sharepoint.xml
478478
350605448f049cd982554123a75f11e1 xml/banner/x-aspnet-version.xml
479479
ccb5e02a692f75d11b7fd00f1db48bf5 xml/banner/x-powered-by.xml
480480
385570003bf7d84f2502191eae8268c6 xml/boundaries.xml
481-
e7c893dd4f3f1d6b5b6f5ffd717d38cc xml/errors.xml
481+
78de3436ae5ad4b3882d59079f2012e4 xml/errors.xml
482482
a279656ea3fcb85c727249b02f828383 xml/livetests.xml
483483
11547289b99eaced5b55185a3230529a xml/payloads/boolean_blind.xml
484484
0656ba4132cd02477be90e65a7ddf6ce xml/payloads/error_based.xml

0 commit comments

Comments
 (0)