(resp, path)
| 122 | return eval(post_body) |
| 123 | |
| 124 | def 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 | |
| 133 | def blockPaths(path): |
| 134 | if path.split('?')[0] in block_paths or path in block_paths: |