mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-23 19:34:13 +03:00
Minor fix and cosmetics
This commit is contained in:
parent
a3e3387113
commit
47fa600c04
|
@ -13,7 +13,7 @@ from lib.core.data import kb
|
||||||
from lib.request.connect import Connect as Request
|
from lib.request.connect import Connect as Request
|
||||||
|
|
||||||
def getPageTemplate(payload, place):
|
def getPageTemplate(payload, place):
|
||||||
retVal = kb.originalPage, kb.errorIsNone
|
retVal = (kb.originalPage, kb.errorIsNone)
|
||||||
|
|
||||||
if payload and place:
|
if payload and place:
|
||||||
if (payload, place) not in kb.pageTemplates:
|
if (payload, place) not in kb.pageTemplates:
|
||||||
|
@ -24,4 +24,4 @@ def getPageTemplate(payload, place):
|
||||||
|
|
||||||
return retVal
|
return retVal
|
||||||
|
|
||||||
lib.core.common.getPageTemplate = getPageTemplate
|
lib.core.common.getPageTemplate = getPageTemplate
|
||||||
|
|
|
@ -41,7 +41,7 @@ class xp_cmdshell:
|
||||||
|
|
||||||
self.__randStr = randomStr(lowercase=True)
|
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 += "set @%s='" % self.__randStr
|
||||||
cmd += "CREATE PROCEDURE xp_cmdshell(@cmd varchar(255)) AS DECLARE @ID int "
|
cmd += "CREATE PROCEDURE xp_cmdshell(@cmd varchar(255)) AS DECLARE @ID int "
|
||||||
cmd += "EXEC sp_OACreate ''WScript.Shell'', @ID OUT "
|
cmd += "EXEC sp_OACreate ''WScript.Shell'', @ID OUT "
|
||||||
|
|
|
@ -481,6 +481,9 @@ Formats:
|
||||||
<response>
|
<response>
|
||||||
<comparison>AND [RANDNUM]=[RANDNUM1]</comparison>
|
<comparison>AND [RANDNUM]=[RANDNUM1]</comparison>
|
||||||
</response>
|
</response>
|
||||||
|
<details>
|
||||||
|
<dbms>MySQL</dbms>
|
||||||
|
</details>
|
||||||
</test>
|
</test>
|
||||||
|
|
||||||
<test>
|
<test>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user