mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-30 19:39:08 +00:00
Some more drei stuff
This commit is contained in:
@@ -47,6 +47,7 @@ from lib.core.settings import RESTAPI_DEFAULT_PORT
|
||||
from lib.core.shell import autoCompletion
|
||||
from lib.core.subprocessng import Popen
|
||||
from lib.parse.cmdline import cmdLineParser
|
||||
from lib.utils.xrange import xrange
|
||||
from thirdparty.bottle.bottle import error as return_error
|
||||
from thirdparty.bottle.bottle import get
|
||||
from thirdparty.bottle.bottle import hook
|
||||
|
||||
@@ -31,6 +31,7 @@ from lib.core.threads import getCurrentThreadData
|
||||
from lib.core.threads import runThreads
|
||||
from lib.parse.sitemap import parseSitemap
|
||||
from lib.request.connect import Connect as Request
|
||||
from lib.utils.xrange import xrange
|
||||
from thirdparty.beautifulsoup.beautifulsoup import BeautifulSoup
|
||||
from thirdparty.six.moves import http_client as _http_client
|
||||
from thirdparty.six.moves import urllib as _urllib
|
||||
|
||||
@@ -86,6 +86,7 @@ from lib.core.settings import NULL
|
||||
from lib.core.settings import UNICODE_ENCODING
|
||||
from lib.core.settings import ROTATING_CHARS
|
||||
from lib.core.wordlist import Wordlist
|
||||
from lib.utils.xrange import xrange
|
||||
from thirdparty import six
|
||||
from thirdparty.colorama.initialise import init as coloramainit
|
||||
from thirdparty.pydes.pyDes import des
|
||||
|
||||
@@ -25,6 +25,7 @@ from lib.core.settings import HASHDB_RETRIEVE_RETRIES
|
||||
from lib.core.settings import UNICODE_ENCODING
|
||||
from lib.core.threads import getCurrentThreadData
|
||||
from lib.core.threads import getCurrentThreadName
|
||||
from lib.utils.xrange import xrange
|
||||
|
||||
class HashDB(object):
|
||||
def __init__(self, filepath):
|
||||
|
||||
@@ -31,6 +31,7 @@ from lib.core.settings import MAX_INT
|
||||
from lib.core.settings import NULL
|
||||
from lib.core.unescaper import unescaper
|
||||
from lib.request import inject
|
||||
from lib.utils.xrange import xrange
|
||||
|
||||
def pivotDumpTable(table, colList, count=None, blind=True, alias=None):
|
||||
lengths = {}
|
||||
|
||||
@@ -13,6 +13,7 @@ import string
|
||||
|
||||
from lib.core.common import getSafeExString
|
||||
from lib.core.data import logger
|
||||
from lib.utils.xrange import xrange
|
||||
|
||||
def purge(directory):
|
||||
"""
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
#!/usr/bin/env python2
|
||||
#!/usr/bin/env python
|
||||
|
||||
"""
|
||||
Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/)
|
||||
See the file 'LICENSE' for copying permission
|
||||
"""
|
||||
|
||||
import numbers
|
||||
|
||||
class xrange(object):
|
||||
"""
|
||||
Advanced (re)implementation of xrange (supports slice/copy/etc.)
|
||||
@@ -68,7 +70,7 @@ class xrange(object):
|
||||
start, stop, step = index.indices(self._len())
|
||||
return xrange(self._index(start),
|
||||
self._index(stop), step * self.step)
|
||||
elif isinstance(index, (int, long)):
|
||||
elif isinstance(index, numbers.Integral):
|
||||
if index < 0:
|
||||
fixed_index = index + self._len()
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user