minor update and refactoring

This commit is contained in:
Miroslav Stampar
2012-02-15 14:05:50 +00:00
parent bf923a97df
commit 8d7912ad34
5 changed files with 21 additions and 5 deletions

View File

@@ -17,6 +17,7 @@ from lib.core.data import conf
from lib.core.data import kb
from lib.core.data import logger
from lib.core.data import paths
from lib.core.enums import DBMS
from lib.core.exception import sqlmapUnsupportedFeatureException
from lib.core.session import setXpCmdshellAvailability
from lib.core.unescaper import unescaper
@@ -63,7 +64,7 @@ class xp_cmdshell:
debugMsg += "stored procedure"
logger.debug(debugMsg)
cmd = getSPLSnippet("configure_xp_cmdshell", ENABLE=str(mode))
cmd = getSPLSnippet(DBMS.MSSQL, "configure_xp_cmdshell", ENABLE=str(mode))
return cmd