Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 827 Bytes

README.md

File metadata and controls

17 lines (15 loc) · 827 Bytes

HARmless

"Removing bearer tokens and cookies, one byte at a time"

Description

This PowerShell script takes a HAR (HTTP Archive) or Fiddler SAZ file as input and removes sensitive data from its headers. The script prompts the user to input the file path if it is not provided as a parameter. The headers to be redacted are specified in a hashtable. The script then reads the HAR file, removes the sensitive data from the specified headers, and saves the sanitized session file with a new name.

Usage

Sanitize HAR
PS C:\> .\Invoke-HARmless.ps1

With parameters
Sanitize HAR
PS C:\> .\Invoke-HARmless.ps1 -SessionFile HarToSanitize.har -RedactWithWord "REDACTED"

Sanitize Fiddler SAZ
PS C:\> .\Invoke-HARmless.ps1 -SessionFile SazToSanitize.saz -RedactWithWord "REDACTED"

HARmless