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