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

Skip to content

Commit 7f3f1dc

Browse files
committed
Fixes #3022
1 parent 4147f44 commit 7f3f1dc

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

lib/controller/checks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
from lib.core.common import urlencode
4848
from lib.core.common import wasLastResponseDBMSError
4949
from lib.core.common import wasLastResponseHTTPError
50+
from lib.core.convert import unicodeencode
5051
from lib.core.defaults import defaults
5152
from lib.core.data import conf
5253
from lib.core.data import kb
@@ -1562,7 +1563,7 @@ def checkConnection(suppressOutput=False):
15621563
threadData = getCurrentThreadData()
15631564

15641565
if kb.redirectChoice == REDIRECTION.YES and threadData.lastRedirectURL and threadData.lastRedirectURL[0] == threadData.lastRequestUID:
1565-
if conf.hostname in (threadData.lastRedirectURL[1] or "") and threadData.lastRedirectURL[1].startswith("https://"):
1566+
if (threadData.lastRedirectURL[1] or "").startswith("https://") and unicodeencode(conf.hostname) in threadData.lastRedirectURL[1]:
15661567
conf.url = re.sub(r"https?://", "https://", conf.url)
15671568
match = re.search(r":(\d+)", threadData.lastRedirectURL[1])
15681569
port = match.group(1) if match else 443

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.4.1"
22+
VERSION = "1.2.4.2"
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)

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ c88d66597f4aab719bde4542b0a1a6e0 extra/shutils/regressiontest.py
2121
1e5532ede194ac9c083891c2f02bca93 extra/sqlharvest/__init__.py
2222
b3e60ea4e18a65c48515d04aab28ff68 extra/sqlharvest/sqlharvest.py
2323
0f581182871148b0456a691ae85b04c0 lib/controller/action.py
24-
84c8694d4ecacd843b6d745f032ff41f lib/controller/checks.py
24+
5084b16b037ed8d29f594f6113fe78e3 lib/controller/checks.py
2525
c414cecdb0472c92cf50ed5b01e4438c lib/controller/controller.py
2626
c7443613a0a2505b1faec931cee2a6ef lib/controller/handler.py
2727
1e5532ede194ac9c083891c2f02bca93 lib/controller/__init__.py
@@ -46,7 +46,7 @@ ffa5f01f39b17c8d73423acca6cfe86a lib/core/readlineng.py
4646
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4747
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
4848
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
49-
f0f522f95a11b24bec01d42a9a535e23 lib/core/settings.py
49+
8c0c10ba91a0cac1315573757a5df233 lib/core/settings.py
5050
0dfc2ed40adf72e302291f6ecd4406f6 lib/core/shell.py
5151
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5252
a35efa7bec9f1e6cedf17c9830a79241 lib/core/target.py

0 commit comments

Comments
 (0)