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

Skip to content

Commit f3f2c81

Browse files
committed
Minor patch (UTF8 used for HTTP params)
1 parent 1e8df40 commit f3f2c81

3 files changed

Lines changed: 5 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.1.5.2"
22+
VERSION = "1.1.5.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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ class WebSocketException(Exception):
105105
from lib.core.settings import REPLACEMENT_MARKER
106106
from lib.core.settings import TEXT_CONTENT_TYPE_REGEX
107107
from lib.core.settings import UNENCODED_ORIGINAL_VALUE
108+
from lib.core.settings import UNICODE_ENCODING
108109
from lib.core.settings import URI_HTTP_HEADER
109110
from lib.core.settings import WARN_TIME_STDEV
110111
from lib.request.basic import decodePage
@@ -1051,7 +1052,7 @@ def _randomizeParameter(paramString, randomParameter):
10511052
if name != "__builtins__" and originals.get(name, "") != value:
10521053
if isinstance(value, (basestring, int)):
10531054
found = False
1054-
value = getUnicode(value)
1055+
value = getUnicode(value, UNICODE_ENCODING)
10551056

10561057
if kb.postHint and re.search(r"\b%s\b" % re.escape(name), post or ""):
10571058
if kb.postHint in (POST_HINT.XML, POST_HINT.SOAP):

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ ebb778c2d26eba8b34d7d8658e4105a6 lib/core/optiondict.py
4646
d8e9250f3775119df07e9070eddccd16 lib/core/replication.py
4747
785f86e3f963fa3798f84286a4e83ff2 lib/core/revision.py
4848
40c80b28b3a5819b737a5a17d4565ae9 lib/core/session.py
49-
578150c2c76de42225eb9bc0857dda56 lib/core/settings.py
49+
06e5a2f64fe5cc894c7f1188c86133c1 lib/core/settings.py
5050
d91291997d2bd2f6028aaf371bf1d3b6 lib/core/shell.py
5151
2ad85c130cc5f2b3701ea85c2f6bbf20 lib/core/subprocessng.py
5252
155e2d3fda87b2e3ffa4f7a770513946 lib/core/target.py
@@ -68,7 +68,7 @@ aa89ea0c7c44eb74eaaeeccaddc94d39 lib/parse/cmdline.py
6868
403d873f1d2fd0c7f73d83f104e41850 lib/request/basicauthhandler.py
6969
aa8abda6eab79646b1759c0653925328 lib/request/basic.py
7070
ef48de622b0a6b4a71df64b0d2785ef8 lib/request/comparison.py
71-
95363c8973208dd95295a23acc9674bc lib/request/connect.py
71+
d55a7a97efca1205510ecb0e8f7149e1 lib/request/connect.py
7272
fb6b788d0016ab4ec5e5f661f0f702ad lib/request/direct.py
7373
cc1163d38e9b7ee5db2adac6784c02bb lib/request/dns.py
7474
5dcdb37823a0b5eff65cd1018bcf09e4 lib/request/httpshandler.py

0 commit comments

Comments
 (0)