mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-24 02:23:45 +03:00
Couple of minor patches
This commit is contained in:
parent
dccc837703
commit
da86486cd9
|
@ -19,7 +19,7 @@ from lib.core.enums import OS
|
|||
from thirdparty.six import unichr as _unichr
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.5.5.6"
|
||||
VERSION = "1.5.5.7"
|
||||
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)
|
||||
|
|
2
thirdparty/ansistrm/ansistrm.py
vendored
2
thirdparty/ansistrm/ansistrm.py
vendored
|
@ -4,8 +4,6 @@
|
|||
#
|
||||
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
|
||||
from lib.core.settings import IS_WIN
|
||||
|
|
2
thirdparty/beautifulsoup/beautifulsoup.py
vendored
2
thirdparty/beautifulsoup/beautifulsoup.py
vendored
|
@ -85,7 +85,6 @@ __copyright__ = "Copyright (c) 2004-2012 Leonard Richardson"
|
|||
__license__ = "New-style BSD"
|
||||
|
||||
import codecs
|
||||
import types
|
||||
import re
|
||||
import sys
|
||||
|
||||
|
@ -2029,6 +2028,5 @@ class UnicodeDammit:
|
|||
|
||||
#By default, act as an HTML pretty-printer.
|
||||
if __name__ == '__main__':
|
||||
import sys
|
||||
soup = BeautifulSoup(sys.stdin)
|
||||
print(soup.prettify())
|
||||
|
|
2
thirdparty/fcrypt/fcrypt.py
vendored
2
thirdparty/fcrypt/fcrypt.py
vendored
|
@ -119,7 +119,7 @@ __all__ = ['crypt']
|
|||
# ----- END fcrypt.c LICENSE -----
|
||||
|
||||
|
||||
import string, struct, sys
|
||||
import struct, sys
|
||||
|
||||
if sys.version_info >= (3, 0):
|
||||
xrange = range
|
||||
|
|
8
thirdparty/keepalive/keepalive.py
vendored
8
thirdparty/keepalive/keepalive.py
vendored
|
@ -517,7 +517,7 @@ def error_handler(url):
|
|||
keepalive_handler.close_all()
|
||||
|
||||
def continuity(url):
|
||||
import md5
|
||||
from hashlib import md5
|
||||
format = '%25s: %s'
|
||||
|
||||
# first fetch the file with the normal http handler
|
||||
|
@ -526,7 +526,7 @@ def continuity(url):
|
|||
fo = _urllib.request.urlopen(url)
|
||||
foo = fo.read()
|
||||
fo.close()
|
||||
m = md5.new(foo)
|
||||
m = md5(foo)
|
||||
print(format % ('normal urllib', m.hexdigest()))
|
||||
|
||||
# now install the keepalive handler and try again
|
||||
|
@ -536,7 +536,7 @@ def continuity(url):
|
|||
fo = _urllib.request.urlopen(url)
|
||||
foo = fo.read()
|
||||
fo.close()
|
||||
m = md5.new(foo)
|
||||
m = md5(foo)
|
||||
print(format % ('keepalive read', m.hexdigest()))
|
||||
|
||||
fo = _urllib.request.urlopen(url)
|
||||
|
@ -546,7 +546,7 @@ def continuity(url):
|
|||
if f: foo = foo + f
|
||||
else: break
|
||||
fo.close()
|
||||
m = md5.new(foo)
|
||||
m = md5(foo)
|
||||
print(format % ('keepalive readline', m.hexdigest()))
|
||||
|
||||
def comp(N, url):
|
||||
|
|
1
thirdparty/magic/magic.py
vendored
1
thirdparty/magic/magic.py
vendored
|
@ -117,7 +117,6 @@ try:
|
|||
pass
|
||||
|
||||
if not libmagic or not libmagic._name:
|
||||
import sys
|
||||
platform_to_lib = {'darwin': ['/opt/local/lib/libmagic.dylib',
|
||||
'/usr/local/lib/libmagic.dylib',
|
||||
'/usr/local/Cellar/libmagic/5.10/lib/libmagic.dylib'],
|
||||
|
|
1
thirdparty/multipart/multipartpost.py
vendored
1
thirdparty/multipart/multipartpost.py
vendored
|
@ -29,7 +29,6 @@ import sys
|
|||
|
||||
from lib.core.compat import choose_boundary
|
||||
from lib.core.convert import getBytes
|
||||
from lib.core.convert import getText
|
||||
from lib.core.exception import SqlmapDataException
|
||||
from thirdparty.six.moves import urllib as _urllib
|
||||
|
||||
|
|
12
thirdparty/six/__init__.py
vendored
12
thirdparty/six/__init__.py
vendored
|
@ -29,7 +29,7 @@ import sys
|
|||
import types
|
||||
|
||||
__author__ = "Benjamin Peterson <benjamin@python.org>"
|
||||
__version__ = "1.15.0"
|
||||
__version__ = "1.16.0"
|
||||
|
||||
|
||||
# Useful for very coarse version differentiation.
|
||||
|
@ -71,6 +71,11 @@ else:
|
|||
MAXSIZE = int((1 << 63) - 1)
|
||||
del X
|
||||
|
||||
if PY34:
|
||||
from importlib.util import spec_from_loader
|
||||
else:
|
||||
spec_from_loader = None
|
||||
|
||||
|
||||
def _add_doc(func, doc):
|
||||
"""Add documentation to a function."""
|
||||
|
@ -186,6 +191,11 @@ class _SixMetaPathImporter(object):
|
|||
return self
|
||||
return None
|
||||
|
||||
def find_spec(self, fullname, path, target=None):
|
||||
if fullname in self.known_modules:
|
||||
return spec_from_loader(fullname, self)
|
||||
return None
|
||||
|
||||
def __get_module(self, fullname):
|
||||
try:
|
||||
return self.known_modules[fullname]
|
||||
|
|
Loading…
Reference in New Issue
Block a user