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

Function injectReqBody

cipherginx.py:113–122  ·  view source on GitHub ↗
(post_body, path)

Source from the content-addressed store, hash-verified

111 return header
112
113def injectReqBody(post_body, path):
114 print(YELLOW + 'Injecting body in path:' + RESET)
115 print(path)
116 for d in inject_domain:
117 post_body = str(post_body).replace(d[1],d[0])
118 for _ in req_body:
119 if _[0] in path:
120 post_body = re.sub(_[1], _[2], post_body)
121 print(BLUE, post_body, RESET)
122 return eval(post_body)
123
124def injectRespBody(resp, path):
125 for d in inject_domain:

Callers 1

do_POSTMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected