Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 95ed6b7

Browse files
committed
Minor patch (Issue #470)
1 parent 4336a8f commit 95ed6b7

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

lib/takeover/xp_cmdshell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(self):
4444
def _xpCmdshellCreate(self):
4545
cmd = ""
4646

47-
if Backend.isVersionWithin(("2005", "2008")):
47+
if Backend.isVersionWithin(("2005", "2008", "2012")):
4848
logger.debug("activating sp_OACreate")
4949

5050
cmd = getSQLSnippet(DBMS.MSSQL, "activate_sp_oacreate")

plugins/dbms/mssqlserver/fingerprint.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ def checkDbms(self):
9292

9393
for version, check in (("2000", "HOST_NAME()=HOST_NAME()"), \
9494
("2005", "XACT_STATE()=XACT_STATE()"), \
95-
("2008", "SYSDATETIME()=SYSDATETIME()")):
95+
("2008", "SYSDATETIME()=SYSDATETIME()"), \
96+
("2012", "CONCAT(NULL,NULL)=CONCAT(NULL,NULL)")):
9697
result = inject.checkBooleanExpression(check)
9798

9899
if result:

0 commit comments

Comments
 (0)