Skip to content

Instantly share code, notes, and snippets.

@LHazy
LHazy / change_power_plan.ps1
Last active April 14, 2019 03:08
電源に接続してる時にハイパフォーマンスに変更するみたいなやつ
# 使用は自己責任で、一切責任は負いません。
# このプログラムは個人の利便性と参考のために公開しています。
#
# 参考情報
# https://docs.microsoft.com/en-us/windows/desktop/power/power-policy-settings
# https://devblogs.microsoft.com/scripting/use-powershell-to-detect-power-state-and-to-set-power-plan/
$powerOptionMap = @{
Balance = "381b4222-f694-41f0-9685-ff5bb260df2e";
Presentation = "3c0b10d2-7404-4a8a-885f-1791a2c9a075";
@LHazy
LHazy / hunt-entra-auditlogs.ps1
Last active March 4, 2024 05:48
Hunting Script for Entra Audit Logs
enum LogCategory {
Audit
Signin
}
enum Sevirity {
High
Medium
Low
}
@LHazy
LHazy / cloud-incident-cases.md
Last active May 15, 2026 08:32
cloud-incident-cases
@LHazy
LHazy / find_shai_hulud_js.ps1
Last active January 28, 2026 05:30
Shai-Hulud Supply Chain Attack で配布された悪性ファイル (bundle.js) の検索スクリプト
# !!!注意!!!:
# このスクリプトはCドライブ配下のファイル・フォルダを探索するため「システムに負荷がかかる場合があります」
# 実行は自己責任でお願いします。
# 使い方:
# powershell -ExecutionPolicy Bypass -File .\Scan-Bundle.ps1 <start_directory>
param(
[Parameter(Mandatory = $true)]
[string]$TargetDirectory
)