Fix exception if init technique not available

This commit is contained in:
Meatballs 2013-06-16 10:47:27 +01:00
parent 2c98507f1e
commit c5087399c1

View File

@ -209,6 +209,7 @@ 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)