mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
minor improvement for --sql-shell/--sql-query (when non-SELECT default is N for retrieve data output which automatically does STACKED injection)
This commit is contained in:
@@ -2230,8 +2230,13 @@ class Enumeration:
|
|||||||
|
|
||||||
if not self.alwaysRetrieveSqlOutput:
|
if not self.alwaysRetrieveSqlOutput:
|
||||||
message = "do you want to retrieve the SQL statement output? "
|
message = "do you want to retrieve the SQL statement output? "
|
||||||
message += "[Y/n/a] "
|
|
||||||
getOutput = readInput(message, default="Y")
|
if not sqlType or 'SELECT' in sqlType:
|
||||||
|
message += "[Y/n/a] "
|
||||||
|
getOutput = readInput(message, default="Y")
|
||||||
|
else:
|
||||||
|
message += "[y/N/a] "
|
||||||
|
getOutput = readInput(message, default="N")
|
||||||
|
|
||||||
if getOutput in ("a", "A"):
|
if getOutput in ("a", "A"):
|
||||||
self.alwaysRetrieveSqlOutput = True
|
self.alwaysRetrieveSqlOutput = True
|
||||||
|
|||||||
Reference in New Issue
Block a user