From 179cf758624152a4988e04a767759cb15b9c358a Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Wed, 3 Aug 2011 16:36:20 +1200 Subject: Add script hooks, enable new engine for mitmdump. --- test/scripts/all.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/scripts/all.py (limited to 'test/scripts/all.py') diff --git a/test/scripts/all.py b/test/scripts/all.py new file mode 100644 index 00000000..e6da7e51 --- /dev/null +++ b/test/scripts/all.py @@ -0,0 +1,20 @@ +log = [] +def clientconnect(ctx, cc): + ctx.log("XCLIENTCONNECT") + log.append("clientconnect") + +def request(ctx, r): + ctx.log("XREQUEST") + log.append("request") + +def response(ctx, r): + ctx.log("XRESPONSE") + log.append("response") + +def clientdisconnect(ctx, cc): + ctx.log("XCLIENTDISCONNECT") + log.append("clientdisconnect") + +def error(ctx, cc): + ctx.log("XERROR") + log.append("error") -- cgit v1.2.3