mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03:00
19 lines
510 B
Python
19 lines
510 B
Python
|
#!/usr/bin/env python
|
||
|
|
||
|
"""
|
||
|
$Id$
|
||
|
|
||
|
Copyright (c) 2006-2010 sqlmap developers (http://sqlmap.sourceforge.net/)
|
||
|
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 = None
|
||
|
if (payload, place) not in kb.pageTemplates:
|
||
|
kb.pageTemplates[(payload, place)], _ = Request.queryPage(payload, place, content=True)
|
||
|
retVal = kb.pageTemplates[(payload, place)]
|
||
|
return retVal
|