(post_body, path)
| 111 | return header |
| 112 | |
| 113 | def 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 | |
| 124 | def injectRespBody(resp, path): |
| 125 | for d in inject_domain: |