mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
minor fix
This commit is contained in:
parent
e36e9de57e
commit
92590d0d59
|
@ -305,6 +305,9 @@ Truong Duc Luong <luongductruong@gmail.com>
|
||||||
Pavol Luptak <pavol.luptak@nethemba.com>
|
Pavol Luptak <pavol.luptak@nethemba.com>
|
||||||
for reporting a bug when injecting on a POST data parameter
|
for reporting a bug when injecting on a POST data parameter
|
||||||
|
|
||||||
|
Till Maas <opensource@till.name>
|
||||||
|
for suggesting a minor feature
|
||||||
|
|
||||||
Michael Majchrowicz <mmajchrowicz@gmail.com>
|
Michael Majchrowicz <mmajchrowicz@gmail.com>
|
||||||
for extensively beta-testing sqlmap on various MySQL DBMS
|
for extensively beta-testing sqlmap on various MySQL DBMS
|
||||||
for providing really appreciated feedback
|
for providing really appreciated feedback
|
||||||
|
|
|
@ -129,15 +129,17 @@ def __formatInjection(inj):
|
||||||
|
|
||||||
for stype, sdata in inj.data.items():
|
for stype, sdata in inj.data.items():
|
||||||
title = sdata.title
|
title = sdata.title
|
||||||
|
_ = sdata.vector
|
||||||
if stype == PAYLOAD.TECHNIQUE.UNION:
|
if stype == PAYLOAD.TECHNIQUE.UNION:
|
||||||
count = re.sub(r"\(.+\)", "", sdata.payload).count(",") + 1
|
count = re.sub(r"\(.+\)", "", sdata.payload).count(",") + 1
|
||||||
title = re.sub(r"\d+ to \d+", str(count), title)
|
title = re.sub(r"\d+ to \d+", str(count), title)
|
||||||
|
_ = agent.forgeInbandQuery("[QUERY]", _[0], _[1], _[2], _[3], _[4], _[5])
|
||||||
if count == 1:
|
if count == 1:
|
||||||
title = title.replace("columns", "column")
|
title = title.replace("columns", "column")
|
||||||
data += " Type: %s\n" % PAYLOAD.SQLINJECTION[stype]
|
data += " Type: %s\n" % PAYLOAD.SQLINJECTION[stype]
|
||||||
data += " Title: %s\n" % title
|
data += " Title: %s\n" % title
|
||||||
data += " Payload: %s\n" % (sdata.payload if stype != PAYLOAD.TECHNIQUE.TIME else sdata.payload.replace("[SLEEPTIME]", str(conf.timeSec)))
|
data += " Payload: %s\n" % (sdata.payload if stype != PAYLOAD.TECHNIQUE.TIME else sdata.payload.replace("[SLEEPTIME]", str(conf.timeSec)))
|
||||||
data += " Vector: %s\n" % sdata.vector if conf.verbose > 1 else "\n"
|
data += " Vector: %s\n\n" % _ if conf.verbose > 1 else "\n"
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user