Skip to content

Instantly share code, notes, and snippets.

@mgreen27
Last active November 28, 2023 01:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgreen27/d7bd2480069f714f31296d5f38fe7f0c to your computer and use it in GitHub Desktop.
Save mgreen27/d7bd2480069f714f31296d5f38fe7f0c to your computer and use it in GitHub Desktop.
Run-TCGLogTools in Velociraptor
# This is a staging file for Running TCGLogTools in Velociraptor
Import-Module $Env:TCGLogTools
$TCGLog = ls $Env:TCGLogLocation | ConvertTo-TCGEventLog -MinimizedX509CertInfo
$TCGCurrentBytes = Get-TCGLogContent -LogType SRTMCurrent
$TCGLog = $TCGLog + $(ConvertTo-TCGEventLog -LogBytes $TCGCurrentBytes -MinimizedX509CertInfo)
$TCGLog | ConvertTo-Json -Depth 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment