This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Command | |
-------- | |
secedit.exe /export /areas SECURITYPOLICY /cfg secedit_output.txt | |
Output | |
------ | |
[Unicode] | |
Unicode=yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"errors" | |
"fmt" | |
"strings" | |
"syscall" | |
"time" | |
"unsafe" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"header":{ | |
"activity_id":"{00000000-0000-0000-0000-000000000000}", | |
"event_flags":576, | |
"event_id":103, | |
"event_name":"", | |
"event_opcode":1, | |
"event_version":0, | |
"process_id":644, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ( | |
[string]$tufFile = $(throw "-tufFile is required."), | |
[string]$rootUrl = "https://tuf.fleetctl.com/" | |
) | |
#Main logic | |
$ErrorActionPreference = 'Stop' | |
#File checks | |
if (!(Test-Path $tufFile)) |