Forrest logo
back to the mitmdump tool

mitmdump:tldr:be058

mitmdump: Filter a saved traffic file to just POST requests.
$ mitmdump -nr ${input_filename} -w ${output_filename} "${~m post}"
try on your machine

This command is using the mitmdump tool to analyze network traffic from a specified input file and filter out POST requests that were sent during this traffic. The details of this command are as follows:

  • mitmdump: This is the actual command that initiates the mitmdump tool.
  • -nr: This option is used to specify that the input file to be read is in a raw format (not yet decoded).
  • ${input_filename}: This is a placeholder that should be replaced with the actual input file name. It represents the name of the file from which the network traffic will be read.
  • -w: This option is used to specify that the output should be written to a file.
  • ${output_filename}: This is a placeholder that should be replaced with the actual output file name. It represents the name of the file to which the filtered network traffic will be written.
  • "${~m post}": This is a filter expression enclosed in double quotes. It is used to specify that only POST requests should be captured. ~m is a filter operator that matches requests according to a given pattern. In this case, "post" is the pattern being matched.
This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the mitmdump tool