Skip to content

Instantly share code, notes, and snippets.

@herculosh
Created October 30, 2020 12:10
Show Gist options
  • Save herculosh/ca7d53587899f5ac89e0943cb2c69f80 to your computer and use it in GitHub Desktop.
Save herculosh/ca7d53587899f5ac89e0943cb2c69f80 to your computer and use it in GitHub Desktop.
Reading Hash-Values from X-Ways Imager Logfile mit PowerShell and Regexp
PS> (Get-Content .\xways-imgager-log.txt -Raw) -match "(?sim)Hash of source data:.+(?<computed_md5>[0-9a-zA-Z]{32}).+\(MD5\).+(?<recomputed_md5>[0-9a-zA-Z]{32}).+\(MD5\)(?!=Data authenticity)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment