mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-24 18:43:47 +03:00
22 lines
633 B
Python
22 lines
633 B
Python
#!/usr/bin/env python
|
|
|
|
"""
|
|
Copyright (c) 2006-2024 sqlmap developers (https://sqlmap.org/)
|
|
See the file 'LICENSE' for copying permission
|
|
"""
|
|
|
|
from lib.core.data import kb
|
|
from lib.request.connect import Connect as Request
|
|
|
|
def getPageTemplate(payload, place):
|
|
retVal = (kb.originalPage, kb.errorIsNone)
|
|
|
|
if payload and place:
|
|
if (payload, place) not in kb.pageTemplates:
|
|
page, _, _ = Request.queryPage(payload, place, content=True, raise404=False)
|
|
kb.pageTemplates[(payload, place)] = (page, kb.lastParserStatus is None)
|
|
|
|
retVal = kb.pageTemplates[(payload, place)]
|
|
|
|
return retVal
|