Skip to content

Commit

Permalink
updated mitmdump command examples
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleygvi committed Sep 23, 2023
1 parent 929123a commit 28607fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/content/posts/releases/mitmproxy101/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ For exporting flows into a HAR file, we created a new addon: `save.har`. This ad

### Exporting on exit

There is also an option to export the files on exit, which can be used with mitmproxy, mitmdump or mitmweb. Either specify the hardump location when loading the script or you can assign it in the mitmproxy options.
There is also an option to export the files on exit, which can be used with mitmproxy, mitmdump or mitmweb. Either specify the hardump location when loading the script, or you can assign it within the mitmproxy options.

```shell
$ mitmdump -s ./path/to/savehar.py --set hardump=./dump.har
$ mitmdump --set hardump=dump.har
```

### Print to console

If the hardump option is set to "-" the HAR file will not be created but instead printed to console on exit.
```shell
$ mitmdump -s ./path/to/savehar.py --set hardump=-
$ mitmdump --set hardump=-
```

[^1]: Tested tool representations include: Charles, Chrome, Firefox, Insomnia, Safari, Brave, and Edge

0 comments on commit 28607fa

Please sign in to comment.