This file contains hidden or 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
#NoEnv | |
#SingleInstance Force | |
SendMode Input | |
SetWorkingDir %A_ScriptDir% | |
SetBatchLines, -1 | |
; ---------- GUI ---------- | |
Gui, Font, s10, Consolas | |
Gui, Add, Text,, PowerShell command: | |
Gui, Add, Edit, vCmdInput w700 xM yp+30, ; command entry |
This file contains hidden or 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
# Example: Find any anomalous permissions: | |
# .\Find-AnomalousFilePermissions.ps1 -Path "C:\Program Files" | |
# Example: Check where regular users have access: | |
# .\Find-AnomalousFilePermissions.ps1 -Path "C:\Program Files" -IncludePrincipals Users,Everyone,Interactive | |
param( | |
[ValidateNotNullOrEmpty()][string[]]$Path, | |
[string[]]$IncludePrincipal, | |
[string[]]$ExcludePrincipal, | |
[string[]]$Access, | |
[string]$OutputFile = ".\output.txt", |
This file contains hidden or 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
var elements = document.querySelectorAll('[data-host-id]'); var uniqueValues = new Set(); for (var i = 0; i < elements.length; i++) {uniqueValues.add(elements[i].getAttribute('data-host-id'));} console.log(Array.from(uniqueValues).join(', ')); |