From 2ed144ec85ce7f7dd5a60baaa41efc8473861535 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 16 Feb 2017 15:52:07 +0100 Subject: [PATCH] Patch for wrong encoding reported privately via email --- lib/core/settings.py | 2 +- lib/request/basic.py | 2 ++ txt/checksum.md5 | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 71a31f8ad..bb933d0d3 100755 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME from lib.core.enums import OS # sqlmap version (...) -VERSION = "1.1.2.7" +VERSION = "1.1.2.8" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) diff --git a/lib/request/basic.py b/lib/request/basic.py index 4ac3e6c10..d156f1d41 100644 --- a/lib/request/basic.py +++ b/lib/request/basic.py @@ -168,6 +168,8 @@ def checkCharEncoding(encoding, warn=True): encoding = encoding.replace("8858", "8859") # iso-8858 -> iso-8859 elif "8559" in encoding: encoding = encoding.replace("8559", "8859") # iso-8559 -> iso-8859 + elif "8895" in encoding: + encoding = encoding.replace("8895", "8859") # iso-8895 -> iso-8859 elif "5889" in encoding: encoding = encoding.replace("5889", "8859") # iso-5889 -> iso-8859 elif "5589" in encoding: diff --git a/txt/checksum.md5 b/txt/checksum.md5 index 64bf75f58..776d67cef 100644 --- a/txt/checksum.md5 +++ b/txt/checksum.md5 @@ -45,7 +45,7 @@ e544108e2238d756c94a240e8a1ce061 lib/core/optiondict.py d8e9250f3775119df07e9070eddccd16 lib/core/replication.py 785f86e3f963fa3798f84286a4e83ff2 lib/core/revision.py 40c80b28b3a5819b737a5a17d4565ae9 lib/core/session.py -382e0d88feb404102c33965ecc8fc3c1 lib/core/settings.py +bf27a71ebdeee395ebaabde9ed6974fe lib/core/settings.py d91291997d2bd2f6028aaf371bf1d3b6 lib/core/shell.py 2ad85c130cc5f2b3701ea85c2f6bbf20 lib/core/subprocessng.py afd0636d2e93c23f4f0a5c9b6023ea17 lib/core/target.py @@ -65,7 +65,7 @@ ad74fc58fc7214802fd27067bce18dd2 lib/core/unescaper.py 0b010b7cdb2e42b5aa0caa59607279ad lib/parse/payloads.py a0444cc351cd6d29015ad16d9eb46ff4 lib/parse/sitemap.py 403d873f1d2fd0c7f73d83f104e41850 lib/request/basicauthhandler.py -6d04ee525e75bf0082e9f1f6d8506546 lib/request/basic.py +c344b6f39d73cad9a47f60cfe027d55e lib/request/basic.py ef48de622b0a6b4a71df64b0d2785ef8 lib/request/comparison.py d57655ea924108989a235a7fa02a45f0 lib/request/connect.py fb6b788d0016ab4ec5e5f661f0f702ad lib/request/direct.py