File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1539,6 +1539,16 @@ def checkConnection(suppressOutput=False):
15391539 else :
15401540 kb .errorIsNone = True
15411541
1542+
1543+ threadData = getCurrentThreadData ()
1544+
1545+ if kb .redirectChoice == REDIRECTION .YES and threadData .lastRedirectURL and threadData .lastRedirectURL [0 ] == threadData .lastRequestUID :
1546+ if conf .hostname in threadData .lastRedirectURL [1 ] and threadData .lastRedirectURL [1 ].startswith ("https://" ):
1547+ conf .url = re .sub (r"https?://" , "https://" , conf .url )
1548+ match = re .search (r":(\d+)" , threadData .lastRedirectURL [1 ])
1549+ port = match .group (1 ) if match else 443
1550+ conf .url = re .sub (r":\d+/" , ":%s/" % port , conf .url )
1551+
15421552 except SqlmapConnectionException , ex :
15431553 if conf .ipv6 :
15441554 warnMsg = "check connection to a provided "
Original file line number Diff line number Diff line change 1919from lib .core .enums import OS
2020
2121# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22- VERSION = "1.2.3.44 "
22+ VERSION = "1.2.3.45 "
2323TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2424TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2525VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ c88d66597f4aab719bde4542b0a1a6e0 extra/shutils/regressiontest.py
21211e5532ede194ac9c083891c2f02bca93 extra/sqlharvest/__init__.py
2222b3e60ea4e18a65c48515d04aab28ff68 extra/sqlharvest/sqlharvest.py
23230f581182871148b0456a691ae85b04c0 lib/controller/action.py
24- 6f0db0b505eec576e28d97cced3ad338 lib/controller/checks.py
24+ a2369719ca192945945971bfcffb42e9 lib/controller/checks.py
252533689bb1b064d4eebc216934795a595f lib/controller/controller.py
2626c7443613a0a2505b1faec931cee2a6ef lib/controller/handler.py
27271e5532ede194ac9c083891c2f02bca93 lib/controller/__init__.py
@@ -46,7 +46,7 @@ ffa5f01f39b17c8d73423acca6cfe86a lib/core/readlineng.py
46460c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4747a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
4848fcb74fcc9577523524659ec49e2e964b lib/core/session.py
49- 3f186f4f5322acd57c659532090d11ba lib/core/settings.py
49+ 2dba7f74fccee64374b4efde5b8245a4 lib/core/settings.py
50500dfc2ed40adf72e302291f6ecd4406f6 lib/core/shell.py
5151a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5252a35efa7bec9f1e6cedf17c9830a79241 lib/core/target.py
You can’t perform that action at this time.
0 commit comments