mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
minor fix
This commit is contained in:
parent
886aa22efc
commit
7fb190f3b1
|
@ -309,14 +309,14 @@ def unionUse(expression, unpack=True, dump=False):
|
||||||
if isNoneValue(items):
|
if isNoneValue(items):
|
||||||
continue
|
continue
|
||||||
kb.locks.value.acquire()
|
kb.locks.value.acquire()
|
||||||
for item in items:
|
for item in arrayizeValue(items):
|
||||||
threadData.shared.value.append(item)
|
threadData.shared.value.append(item)
|
||||||
kb.locks.value.release()
|
kb.locks.value.release()
|
||||||
else:
|
else:
|
||||||
items = output.replace(kb.chars.start, "").replace(kb.chars.stop, "").split(kb.chars.delimiter)
|
items = output.replace(kb.chars.start, "").replace(kb.chars.stop, "").split(kb.chars.delimiter)
|
||||||
|
|
||||||
if conf.verbose == 1:
|
if conf.verbose == 1:
|
||||||
status = "[%s] [INFO] %s: %s" % (time.strftime("%X"), "resumed" if threadData.resumed else "retrieved", safecharencode(",".join("\"%s\"" % _ for _ in unArrayizeValue(items))))
|
status = "[%s] [INFO] %s: %s" % (time.strftime("%X"), "resumed" if threadData.resumed else "retrieved", safecharencode(",".join("\"%s\"" % _ for _ in arrayizeValue(unArrayizeValue(items)))))
|
||||||
|
|
||||||
if len(status) > width:
|
if len(status) > width:
|
||||||
status = "%s..." % status[:width - 3]
|
status = "%s..." % status[:width - 3]
|
||||||
|
|
|
@ -15,6 +15,5 @@ if PYVERSION >= "3" or PYVERSION < "2.6":
|
||||||
exit("[CRITICAL] incompatible Python version detected ('%s'). For successfully running sqlmap you'll have to use version 2.6 or 2.7 (visit \"http://www.python.org/download/\")" % PYVERSION)
|
exit("[CRITICAL] incompatible Python version detected ('%s'). For successfully running sqlmap you'll have to use version 2.6 or 2.7 (visit \"http://www.python.org/download/\")" % PYVERSION)
|
||||||
elif __name__ == "__main__":
|
elif __name__ == "__main__":
|
||||||
from _sqlmap import main
|
from _sqlmap import main
|
||||||
# import needed for proper working of --profile switch
|
from lib.controller.controller import start # needed for proper working of --profile switch
|
||||||
from lib.controller.controller import start
|
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user