mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
Should fix broken Travis
This commit is contained in:
parent
6825bf85a4
commit
19e08416b5
|
@ -36,6 +36,8 @@ from lib.request.templates import getPageTemplate
|
|||
from thirdparty import six
|
||||
from thirdparty.six.moves import http_client as _http_client
|
||||
|
||||
_rand = 0
|
||||
|
||||
def dirtyPatches():
|
||||
"""
|
||||
Place for "dirty" Python related patches
|
||||
|
|
|
@ -18,7 +18,7 @@ from lib.core.enums import OS
|
|||
from thirdparty.six import unichr as _unichr
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.4.2.19"
|
||||
VERSION = "1.4.2.20"
|
||||
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)
|
||||
|
|
|
@ -5,8 +5,6 @@ Copyright (c) 2006-2020 sqlmap developers (http://sqlmap.org/)
|
|||
See the file 'LICENSE' for copying permission
|
||||
"""
|
||||
|
||||
from __future__ import division
|
||||
|
||||
import doctest
|
||||
import logging
|
||||
import os
|
||||
|
@ -35,8 +33,6 @@ from lib.core.data import paths
|
|||
from lib.core.data import queries
|
||||
from lib.core.patch import unisonRandom
|
||||
|
||||
_rand = 0
|
||||
|
||||
def vulnTest():
|
||||
"""
|
||||
Runs the testing against 'vulnserver'
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
Copyright (c) 2006-2020 sqlmap developers (http://sqlmap.org/)
|
||||
See the file 'LICENSE' for copying permission
|
||||
"""
|
||||
from __future__ import print_function
|
||||
|
||||
import codecs
|
||||
import gzip
|
||||
|
@ -239,12 +238,8 @@ def checkCharEncoding(encoding, warn=True):
|
|||
|
||||
if encoding:
|
||||
try:
|
||||
_ = getBytes(randomStr())
|
||||
print(repr(_))
|
||||
print(encoding)
|
||||
six.text_type(_, encoding)
|
||||
except Exception as ex:
|
||||
print(getSafeExString(ex))
|
||||
six.text_type(getBytes(randomStr()), encoding)
|
||||
except:
|
||||
if warn:
|
||||
warnMsg = "invalid web page charset '%s'" % encoding
|
||||
singleTimeLogMessage(warnMsg, logging.WARN, encoding)
|
||||
|
|
Loading…
Reference in New Issue
Block a user