Minor fix and cosmetics

This commit is contained in:
Bernardo Damele 2011-01-24 11:12:33 +00:00
parent a3e3387113
commit 47fa600c04
3 changed files with 6 additions and 3 deletions

View File

@ -13,7 +13,7 @@ from lib.core.data import kb
from lib.request.connect import Connect as Request
def getPageTemplate(payload, place):
retVal = kb.originalPage, kb.errorIsNone
retVal = (kb.originalPage, kb.errorIsNone)
if payload and place:
if (payload, place) not in kb.pageTemplates:
@ -24,4 +24,4 @@ def getPageTemplate(payload, place):
return retVal
lib.core.common.getPageTemplate = getPageTemplate
lib.core.common.getPageTemplate = getPageTemplate

View File

@ -41,7 +41,7 @@ class xp_cmdshell:
self.__randStr = randomStr(lowercase=True)
cmd += "declare @%s nvarchar(999); " % self.__randStr
cmd += "DECLARE @%s nvarchar(999); " % self.__randStr
cmd += "set @%s='" % self.__randStr
cmd += "CREATE PROCEDURE xp_cmdshell(@cmd varchar(255)) AS DECLARE @ID int "
cmd += "EXEC sp_OACreate ''WScript.Shell'', @ID OUT "

View File

@ -481,6 +481,9 @@ Formats:
<response>
<comparison>AND [RANDNUM]=[RANDNUM1]</comparison>
</response>
<details>
<dbms>MySQL</dbms>
</details>
</test>
<test>