MCPcopy Index your code
hub / github.com/cipheras/cipherginx / injectRespBody

Function injectRespBody

cipherginx.py:124–131  ·  view source on GitHub ↗
(resp, path)

Source from the content-addressed store, hash-verified

122 return eval(post_body)
123
124def injectRespBody(resp, path):
125 for d in inject_domain:
126 resp = str(resp).replace(d[0],d[1])
127 for _ in resp_body:
128 if _[0] in path:
129 resp = resp.replace(_[1],_[2])
130 print(YELLOW + 'Replaced {' + _[1] + '} with {' + _[2] + '}' + RESET)
131 return eval(resp)
132
133def blockPaths(path):
134 if path.split('?')[0] in block_paths or path in block_paths:

Callers 2

do_GETMethod · 0.85
do_POSTMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected