More DREI stuff

This commit is contained in:
Miroslav Stampar 2021-01-15 10:51:49 +01:00
parent d78590213b
commit 6244850749
3 changed files with 10 additions and 3 deletions

View File

@ -18,7 +18,7 @@ from lib.core.enums import OS
from thirdparty.six import unichr as _unichr from thirdparty.six import unichr as _unichr
# sqlmap version (<major>.<minor>.<month>.<monthly commit>) # sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.5.1.32" VERSION = "1.5.1.33"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} 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) VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

View File

@ -134,13 +134,17 @@ except IOError:
# Lots of stdlib and builtin differences. # Lots of stdlib and builtin differences.
if py3k: if py3k:
try:
from collections.abc import MutableMapping as DictMixin
except ImportError:
from collections import MutableMapping as DictMixin
import http.client as httplib import http.client as httplib
import _thread as thread import _thread as thread
from urllib.parse import urljoin, SplitResult as UrlSplitResult from urllib.parse import urljoin, SplitResult as UrlSplitResult
from urllib.parse import urlencode, quote as urlquote, unquote as urlunquote from urllib.parse import urlencode, quote as urlquote, unquote as urlunquote
urlunquote = functools.partial(urlunquote, encoding='latin1') urlunquote = functools.partial(urlunquote, encoding='latin1')
from http.cookies import SimpleCookie from http.cookies import SimpleCookie
from collections import MutableMapping as DictMixin
import pickle import pickle
from io import BytesIO from io import BytesIO
from configparser import ConfigParser, Error as ConfigParserError from configparser import ConfigParser, Error as ConfigParserError

View File

@ -22,6 +22,9 @@
try: try:
from UserDict import DictMixin from UserDict import DictMixin
except ImportError:
try:
from collections.abc import MutableMapping as DictMixin
except ImportError: except ImportError:
from collections import MutableMapping as DictMixin from collections import MutableMapping as DictMixin