mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
make sure to use Python 2 interpreter when default system Python is version 3
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user