make sure to use Python 2 interpreter when default system Python is version 3

This commit is contained in:
Bernardo Damele
2013-02-14 11:25:04 +00:00
parent 6629233de5
commit a67ef4117f
257 changed files with 258 additions and 259 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
"""
Copyright (c) 2006-2013 sqlmap developers (http://sqlmap.org/)
@@ -178,8 +178,7 @@ class Xp_cmdshell:
return agent.runAsDBMSUser(self._forgedCmd)
def xpCmdshellExecCmd(self, cmd, silent=False):
cmd = self.xpCmdshellForgeCmd(cmd)
return inject.goStacked(cmd, silent)
return inject.goStacked(self.xpCmdshellForgeCmd(cmd), silent)
def xpCmdshellEvalCmd(self, cmd, first=None, last=None):
if conf.direct: