from now on proper union column count should be displayed in injection info output

This commit is contained in:
Miroslav Stampar 2011-08-03 10:34:50 +00:00
parent 13eb20cea1
commit f7562da754

View File

@ -123,8 +123,14 @@ def __formatInjection(inj):
data += "Parameter: %s\n" % inj.parameter
for stype, sdata in inj.data.items():
title = sdata.title
if stype == PAYLOAD.TECHNIQUE.UNION:
count = re.sub(r"\(.+\)", "", sdata.payload).count(",") + 1
title = re.sub(r"\d+ to \d+", str(count), title)
if count == 1:
title = title.replace("columns", "column")
data += " Type: %s\n" % PAYLOAD.SQLINJECTION[stype]
data += " Title: %s\n" % sdata.title
data += " Title: %s\n" % title
data += " Payload: %s\n\n" % sdata.payload
return data