mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-07 17:02:39 +01:00
Fix exception if init technique not available
This commit is contained in:
parent
2c98507f1e
commit
c5087399c1
1 changed files with 2 additions and 1 deletions
|
|
@ -209,9 +209,10 @@ class Xp_cmdshell:
|
|||
|
||||
query = "SELECT %s FROM %s ORDER BY id" % (self.tblField, self.cmdTblName)
|
||||
|
||||
output = None
|
||||
if any(isTechniqueAvailable(_) for _ in (PAYLOAD.TECHNIQUE.UNION, PAYLOAD.TECHNIQUE.ERROR, PAYLOAD.TECHNIQUE.QUERY)) or conf.direct:
|
||||
output = inject.getValue(query, resumeValue=False, blind=False, time=False)
|
||||
|
||||
|
||||
if (output is None) or len(output)==0 or output[0] is None:
|
||||
output = []
|
||||
count = inject.getValue("SELECT COUNT(id) FROM %s" % self.cmdTblName, resumeValue=False, union=False, error=False, expected=EXPECTED.INT, charsetType=CHARSET_TYPE.DIGITS)
|
||||
|
|
|
|||
Loading…
Reference in a new issue