From 95ed6b7203ee5915bb2e3fa07efe29bb11cb3dba Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 24 Jun 2013 14:37:45 +0200 Subject: [PATCH] Minor patch (Issue #470) --- lib/takeover/xp_cmdshell.py | 2 +- plugins/dbms/mssqlserver/fingerprint.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/takeover/xp_cmdshell.py b/lib/takeover/xp_cmdshell.py index 0b8a16b95..ba6b07e3a 100644 --- a/lib/takeover/xp_cmdshell.py +++ b/lib/takeover/xp_cmdshell.py @@ -44,7 +44,7 @@ class Xp_cmdshell: def _xpCmdshellCreate(self): cmd = "" - if Backend.isVersionWithin(("2005", "2008")): + if Backend.isVersionWithin(("2005", "2008", "2012")): logger.debug("activating sp_OACreate") cmd = getSQLSnippet(DBMS.MSSQL, "activate_sp_oacreate") diff --git a/plugins/dbms/mssqlserver/fingerprint.py b/plugins/dbms/mssqlserver/fingerprint.py index fc249b689..05b636297 100644 --- a/plugins/dbms/mssqlserver/fingerprint.py +++ b/plugins/dbms/mssqlserver/fingerprint.py @@ -92,7 +92,8 @@ class Fingerprint(GenericFingerprint): for version, check in (("2000", "HOST_NAME()=HOST_NAME()"), \ ("2005", "XACT_STATE()=XACT_STATE()"), \ - ("2008", "SYSDATETIME()=SYSDATETIME()")): + ("2008", "SYSDATETIME()=SYSDATETIME()"), \ + ("2012", "CONCAT(NULL,NULL)=CONCAT(NULL,NULL)")): result = inject.checkBooleanExpression(check) if result: