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

Skip to content

Commit 82aa481

Browse files
committed
Patch for IPv6 addresses (proper Host header)
1 parent 1f375e4 commit 82aa481

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

lib/core/common.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4149,6 +4149,9 @@ def getHostHeader(url):
41494149
elif any(retVal.endswith(':%d' % _) for _ in (80, 443)):
41504150
retVal = retVal.split(':')[0]
41514151

4152+
if retVal and retVal.count(':') > 1 and not any(_ in retVal for _ in ('[', ']')):
4153+
retVal = "[%s]" % retVal
4154+
41524155
return retVal
41534156

41544157
def checkDeprecatedOptions(args):

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.3.1.82"
22+
VERSION = "1.3.1.83"
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
@@ -30,7 +30,7 @@ c1da277517c7ec4c23e953a51b51e203 lib/controller/handler.py
3030
fb6be55d21a70765e35549af2484f762 lib/controller/__init__.py
3131
ed7874be0d2d3802f3d20184f2b280d5 lib/core/agent.py
3232
a932126e7d80e545c5d44af178d0bc0c lib/core/bigarray.py
33-
76825cafb1916b85a8738493de8607c6 lib/core/common.py
33+
872f111e8283a4d36cd56f19d26cd13d lib/core/common.py
3434
de8d27ae6241163ff9e97aa9e7c51a18 lib/core/convert.py
3535
abcb1121eb56d3401839d14e8ed06b6e lib/core/data.py
3636
e1f7758f433202c50426efde5eb96768 lib/core/datatype.py
@@ -50,7 +50,7 @@ fe370021c6bc99daf44b2bfc0d1effb3 lib/core/patch.py
5050
7d8a22c582ad201f65b73225e4456170 lib/core/replication.py
5151
3179d34f371e0295dd4604568fb30bcd lib/core/revision.py
5252
d6269c55789f78cf707e09a0f5b45443 lib/core/session.py
53-
8a8ee76f9b901b16929cf875807a7690 lib/core/settings.py
53+
0e382a4dfbcfa74d104d172f53beff98 lib/core/settings.py
5454
4483b4a5b601d8f1c4281071dff21ecc lib/core/shell.py
5555
10fd19b0716ed261e6d04f311f6f527c lib/core/subprocessng.py
5656
9c7b5c6397fb3da33e7a4d7876d159c6 lib/core/target.py

0 commit comments

Comments
 (0)