mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 21:24:13 +03: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:
parent
900ee0ff93
commit
8e8886cd20
|
@ -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? "
|
||||||
|
|
||||||
|
if not sqlType or 'SELECT' in sqlType:
|
||||||
message += "[Y/n/a] "
|
message += "[Y/n/a] "
|
||||||
getOutput = readInput(message, default="Y")
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user