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
| #!/usr/bin/env bash | |
| # ============================================================================== | |
| # 脚本名称: container_batch_audit_and_upgrade.sh | |
| # 功能描述: 针对 eMudhra CA 证书弱私钥泄露事件的容器批量排查与热升级工具 | |
| # 探测端点: | |
| # - 原生链: https://dv-g3b-emudhra.we-have-a-problem.com/ | |
| # - 交叉签名链: https://dv-g3b-aaa-emudhra.we-have-a-problem.com/ | |
| # 判定标准: | |
| # - 握手失败/抛出证书错误 -> 安全 (SECURE) | |
| # - 握手成功/HTTP 200 -> 存在高危风险 (VULNERABLE) |
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
| # win32com multithreading example | |
| import sys | |
| import time | |
| from threading import Thread | |
| sys.coinit_flags = 0 # pythoncom.COINIT_MULTITHREADED == 0 | |
| from pythoncom import (CoInitializeEx, CoUninitialize, | |
| COINIT_MULTITHREADED, PumpWaitingMessages) | |
| from win32com.client import Dispatch, WithEvents | |