mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-23 01:56:36 +03:00
slightly more appropriate definition of output variable
This commit is contained in:
parent
cae108d9fc
commit
a72096a345
|
@ -183,6 +183,8 @@ class Xp_cmdshell:
|
||||||
return inject.goStacked(self.xpCmdshellForgeCmd(cmd), silent)
|
return inject.goStacked(self.xpCmdshellForgeCmd(cmd), silent)
|
||||||
|
|
||||||
def xpCmdshellEvalCmd(self, cmd, first=None, last=None):
|
def xpCmdshellEvalCmd(self, cmd, first=None, last=None):
|
||||||
|
output = None
|
||||||
|
|
||||||
if conf.direct:
|
if conf.direct:
|
||||||
output = self.xpCmdshellExecCmd(cmd)
|
output = self.xpCmdshellExecCmd(cmd)
|
||||||
|
|
||||||
|
@ -208,7 +210,6 @@ class Xp_cmdshell:
|
||||||
self.delRemoteFile(self.tmpFile)
|
self.delRemoteFile(self.tmpFile)
|
||||||
|
|
||||||
query = "SELECT %s FROM %s ORDER BY id" % (self.tblField, self.cmdTblName)
|
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:
|
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)
|
output = inject.getValue(query, resumeValue=False, blind=False, time=False)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user