MCPcopy
hub / github.com/epinna/tplmap / blind

Function blind

tests/env_py_tests/webserver.py:141–158  ·  view source on GitHub ↗
(engine)

Source from the content-addressed store, hash-verified

139
140@app.route("/blind/<engine>")
141def blind(engine):
142
143 template = request.values.get('tpl')
144 if not template:
145 template = '%s'
146
147 injection = request.values.get('inj')
148
149 if engine == 'mako':
150 MakoTemplates(template % injection, lookup=mylookup).render()
151 elif engine == 'jinja2':
152 Jinja2Env.from_string(template % injection).render()
153 elif engine == 'eval':
154 eval(template % injection)
155 elif engine == 'tornado':
156 tornado.template.Template(template % injection).generate()
157
158 return randomword()
159
160@app.route("/reflect_cookieauth/<engine>")
161def reflect_cookieauth(engine):

Callers

nothing calls this directly

Calls 3

randomwordFunction · 0.85
getMethod · 0.80
renderMethod · 0.80

Tested by

no test coverage detected