mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-10 17:59:04 +00:00
now user can explicitly state number of UNION affected columns via --union-cols (e.g. --union-cols=5)
This commit is contained in:
@@ -113,7 +113,10 @@ def configUnion(char=None, columns=None):
|
||||
return
|
||||
|
||||
columns = columns.replace(" ", "")
|
||||
colsStart, colsStop = columns.split("-")
|
||||
if "-" in columns:
|
||||
colsStart, colsStop = columns.split("-")
|
||||
else:
|
||||
colsStart, colsStop = columns, columns
|
||||
|
||||
if not colsStart.isdigit() or not colsStop.isdigit():
|
||||
raise sqlmapSyntaxException, "--union-cols must be a range of integers"
|
||||
|
||||
Reference in New Issue
Block a user