Add --kill option to mitmdump

If this option is passed all requests that are not part of a replayed
conversation are killed. If the option is not passed, such requests are passed
through to the server as usual.
This commit is contained in:
Aldo Cortesi
2011-02-21 11:08:35 +13:00
parent c3e3897071
commit fe99871df8
6 changed files with 40 additions and 11 deletions

View File

@@ -50,6 +50,9 @@ if __name__ == '__main__':
parser.add_option("-r", "--replay",
action="store", dest="replay", default=None,
help="Replay server responses from a saved file.")
parser.add_option("-k", "--kill",
action="store_true", dest="kill", default=False,
help="Kill extra requests during replay.")
options, args = parser.parse_args()
@@ -65,6 +68,7 @@ if __name__ == '__main__':
request_script = options.request_script,
response_script = options.response_script,
replay = options.replay,
kill = options.kill
)
if args:
filt = " ".join(args)