Last active
December 8, 2021 10:13
-
-
Save phantinuss/e8e99f3e3efc44733410ff6a19755b32 to your computer and use it in GitHub Desktop.
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
$Config1URL = "https://raw.githubusercontent.com/Neo23x0/sysmon-config/master/sysmonconfig-export.xml" | |
$Config1 = "sysmonconfig-export.xml" | |
$Config2URL = "https://raw.githubusercontent.com/OTRF/Blacksmith/master/resources/configs/sysmon/sysmon.xml" | |
$Config2 = "sysmonconfig-all.xml" | |
# OS Arch for Exe | |
$OsArch = (Get-WmiObject Win32_OperatingSystem).OSArchitecture | |
$SysmonExe = "Sysmon64.exe" | |
if ($OsArch -match "32-Bit"){ $SysmonExe = "Sysmon.exe" } else {$SysmonExe = "Sysmon64.exe"} | |
write "Download $SysmonExe..." | |
iwr https://live.sysinternals.com/tools/$SysmonExe -OutFile $SysmonExe | |
write "Download $Config1..." | |
iwr $Config1URL -OutFile $Config1 | |
write "Download $Config2..." | |
iwr $Config2URL -OutFile $Config2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment