From fda0166e724a392e2b30d6fd406844a78825b0b5 Mon Sep 17 00:00:00 2001 From: Rob Glew Date: Fri, 5 Feb 2016 15:25:23 -0600 Subject: [PATCH] Removed files breaking install --- pappyproxy/templates/intmacro.py | 17 ---------------- pappyproxy/templates/macro.py | 35 -------------------------------- 2 files changed, 52 deletions(-) delete mode 100644 pappyproxy/templates/intmacro.py delete mode 100644 pappyproxy/templates/macro.py diff --git a/pappyproxy/templates/intmacro.py b/pappyproxy/templates/intmacro.py deleted file mode 100644 index 5f941ff..0000000 --- a/pappyproxy/templates/intmacro.py +++ /dev/null @@ -1,17 +0,0 @@ -from pappyproxy.session import Session - -MACRO_NAME = '{{macro_name}}' -SHORT_NAME = '{{short_name}}' -runargs = [] - -def init(args): - global runargs - runargs = args - -def mangle_request(request): - global runargs - return request - -def mangle_response(request): - global runargs - return request.response diff --git a/pappyproxy/templates/macro.py b/pappyproxy/templates/macro.py deleted file mode 100644 index 32fafe0..0000000 --- a/pappyproxy/templates/macro.py +++ /dev/null @@ -1,35 +0,0 @@ -from pappyproxy.http import Request, get_request, post_request, request_by_id -from pappyproxy.context import set_tag -from pappyproxy.iter import * - -## Iterator cheat sheet: -# fuzz_path_trav() - Values for fuzzing path traversal -# fuzz_sqli() - Values for fuzzing SQLi -# fuzz_xss() - Values for fuzzing XSS -# common_passwords() - Common passwords -# common_usernames() - Common usernames -# fuzz_dirs() - Common web paths (ie /wp-admin) - -MACRO_NAME = '{{macro_name}}' -SHORT_NAME = '{{short_name}}' - -########### -## Requests -# It's suggested that you call .copy() on these and then edit attributes -# as needed to create modified requests -## - -{% set count = 1 %}{% for params, lines in zip(req_params, req_lines) %} -req{{ count }} = Request(({% for line in lines %} - '{{ line }}'{% endfor %}{% set count = count+1 %} -){{ params }}) -{% endfor %} - -def run_macro(args): - # Example: - # req = req1.copy() # Copy req1 - # req.submit() # Submit the request to get a response - # print req.response.raw_headers # print the response headers - # req.save() # save the request to the data file - # or copy req1 into a loop and use string substitution to automate requests - pass