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

Skip to content

Commit 9e00202

Browse files
committed
Minor patch (use redirection code for comparison)
1 parent df977d9 commit 9e00202

3 files changed

Lines changed: 4 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.8.2"
22+
VERSION = "1.2.8.3"
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ class _(dict):
490490
page = Connect._connReadProxy(conn) if not skipRead else None
491491

492492
if conn:
493-
code = conn.code
493+
code = (code or conn.code) if conn.code == kb.originalCode else conn.code # do not override redirection code (for comparison purposes)
494494
responseHeaders = conn.info()
495495
responseHeaders[URI_HTTP_HEADER] = conn.geturl()
496496
else:

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py
4848
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4949
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
5050
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
51-
d4884a7b0a93931bc37783e62162d8bb lib/core/settings.py
51+
a56c2a90533ae494cd72e817d84a6c46 lib/core/settings.py
5252
dd68a9d02fccb4fa1428b20e15b0db5d lib/core/shell.py
5353
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5454
12bed9603b6fba3e5ffda11d584bc449 lib/core/target.py
@@ -70,7 +70,7 @@ f2af274126ce0a789027d35d367f2b9e lib/parse/payloads.py
7070
30eed3a92a04ed2c29770e1b10d39dc0 lib/request/basicauthhandler.py
7171
2b81435f5a7519298c15c724e3194a0d lib/request/basic.py
7272
c0cabedead14b8a23353b606672cff42 lib/request/comparison.py
73-
039f0f7cf997856fa2f6e8d5d69f7ae9 lib/request/connect.py
73+
e284905d23658b85e94a5dd37bfb80b2 lib/request/connect.py
7474
dd4598675027fae99f2e2475b05986da lib/request/direct.py
7575
2044fce3f4ffa268fcfaaf63241b1e64 lib/request/dns.py
7676
98535d0efca5551e712fcc4b34a3f772 lib/request/httpshandler.py

0 commit comments

Comments
 (0)