Skip to content

Instantly share code, notes, and snippets.

@Garphy
Garphy / container_batch_audit_and_upgrade.sh
Created October 23, 2026 11:54
针对 eMudhra CA 证书弱私钥泄露事件的容器批量排查与热升级工具
#!/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)
@Garphy
Garphy / pycom.py
Created November 30, 2021 12:28 — forked from vlasenkov/pycom.py
win32com multithreading example (python 2)
# 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