mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
23 lines
619 B
Python
23 lines
619 B
Python
#!/usr/bin/env python2
|
|
|
|
"""
|
|
Copyright (c) 2006-2013 sqlmap developers (http://sqlmap.org/)
|
|
See the file 'doc/COPYING' 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)
|
|
kb.pageTemplates[(payload, place)] = (page, kb.lastParserStatus is None)
|
|
|
|
retVal = kb.pageTemplates[(payload, place)]
|
|
|
|
return retVal
|
|
|