2026/11/08

M$出的好用工具
可以完整記錄在win上執行的東西

下載後開dos視窗以系統管理員安裝


sysmon64.exe -accepteula -i sysmonconfig-export.xml


如何查看 Sysmon 事件紀錄

安裝並運作後,事件會被記錄在 Windows 事件日誌中:
1. 按下 Win + R 鍵,輸入 eventvwr.msc 開啟事件檢視器。
2. 依序展開:應用程式及服務記錄檔 -> Microsoft -> Windows -> Sysmon -> Operational。
3. 尋找常見的 Event ID 來分析行為:
• Event ID 1:處理序建立(Process Creation,包含完整的 Command Line 與雜湊值)。
• Event ID 3:網路連線(Network Connection)。
• Event ID 11:檔案建立(File Create)。
• Event ID 22:DNS 查詢(DNS Event)


所有ID

ID 標籤 事件
1 ProcessCreate 進程創建
2 檔案建立時間 檔案建立時間
3 NetworkConnect 偵測到的網路連線
4 n/a Sysmon 服務狀態變更 (無法篩選)
5 ProcessTerminate 處理程序已終止
6 DriverLoad 驅動程式已載入
7 ImageLoad 映像已載入
8 CreateRemoteThread 偵測到 CreateRemoteThread
9 RawAccessRead 偵測到 RawAccessRead
10 ProcessAccess 程序已被存取
11 FileCreate 檔案已建立
12 註冊事件 登錄物件已新增或刪除
13 註冊事件 登錄值已設定
14 註冊事件 登錄物件已重新命名
15 FileCreateStreamHash 檔案資料流已建立
16 n/a Sysmon 設定變更 (無法篩選)
17 PipeEvent 具名管道已建立
18 PipeEvent 具名管道已連線
19 WmiEvent WMI 篩選
20 WmiEvent WMI 使用者
21 WmiEvent WMI 使用者篩選器
22 DnsQuery DNS 查詢
23 檔案刪除 已封存檔案刪除
24 剪貼簿變更 剪貼簿中的新內容
25 處理程序操控 處理進程圖像變更
26 檔案刪除已偵測 檔案刪除動作已被記錄
27 FileBlockExecutable 阻擋可執行檔案
28 FileBlockShredding 檔案區塊銷毀
29 偵測到可執行檔案 偵測到可執行檔



2026/11/04

弱掃軟体

docker run --rm -v $(pwd):/output projectdiscovery/nuclei:latest \
  -u https://10.1.1.1  \
  -pdf-export /output/report.pdf


直接用python起http server

python3 -m http.server 3333


2026/10/28

cloudflare 提供免費靜態網頁的使用

講一下流程

先註冊或直使用google或其他帳號 (無需信用卡)

https://dash.cloudflare.com/login

登入後依照以下擷圖操作

使用上傳放式如果網頁內容有修改

不能只上傳修改部分

要砍掉重傳









snmp從windows server 2012 開始就被棄用

最近剛好看到 ncpa 

nagios 出的工具

記錄一下安裝使用流程 被監控端以windows 為例

下載 windows agent 安裝 

安裝過程中 token 記得要修改

監控端下載 check_ncpa.py

撈取被控端資料語法如下


# 1. 檢查 CPU 使用率 (5分鐘平均)

python3 check_ncpa.py -H 192.168.1.100 -t 'mytoken' -M 'cpu/percent' -q "aggregate=avg" -w 80 -c 90


# 2. 檢查記憶體使用率 (%)

python3 check_ncpa.py -H 192.168.1.100 -t 'mytoken' -M 'memory/virtual/percent' -w 80 -c 90


# 3. 檢查根目錄 / (Linux) 或 C: 磁碟空間 (Windows)

# Linux:

python3 check_ncpa.py -H 192.168.1.100 -t 'mytoken' -M 'disk/logical/|/percent' -w 80 -c 90

# Windows:

python3 check_ncpa.py -H 192.168.1.100 -t mytoken -M disk/logical/C:\|/used_percent -w 80 -c 90


查看所有可撈的指標

python3 check_ncpa.py -H 192.168.1.100 -t 'mytoken' -M 'disk/logical/C:|'


https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/hh831568(v=ws.11)

https://www.nagios.org/projects/ncpa/

https://assets.nagios.com/downloads/ncpa3/

https://github.com/NagiosEnterprises/ncpa/tree/master

https://github.com/NagiosEnterprises/ncpa/tree/master/client

2026/10/19

這几天在測試把免費的ai提供者整合起來
像 ollama nvidia google ai studio 等
找到了 litellm
記一下安裝流程

先建個目錄 並在目錄下產生 config.yaml
內容如下

model_list:
  - model_name: auto
    litellm_params:
      model: ollama/gemma4:31b
      api_base: "https://ollama.com"
      api_key: "fcfc69438036414CJtv9L-1EI1i2"

  - model_name: auto
    litellm_params:
      model: openai/nvidia/nemotron-3.5-super-vl-120b-a12b
      api_base: "https://integrate.api.nvidia.com/v1"
      #model: nvidia/nemotron-3.5-super-vl-120b-a12b
      #api_base: "https://integrate.api.nvidia.com"
      api_key: "nvapi-h6TxXTV08YRypl96bQ5VhXAaPWs"

#此區設定若有提供者有問題時會詢問其他  
router_settings:
  num_retries: 3
  allowed_fails: 1
  ##cooldown_time: 300
  timeout: 90

#設定要連到 litellm的密碼
general_settings:
  master_key: "password"

之後啟動docker

docker run -d   --name litellm-proxy   --restart unless-stopped   -p 4000:4000   -v /home/config.yaml:/app/config.yaml   ghcr.io/berriai/litellm:main-latest   --config /app/config.yaml --port 4000 --num_workers 8

跑起來後測試一下

curl http://10.0.0.1:4000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer password" \
  -d '{
    "model": "auto",
    "messages": [{"role": "user", "content": "Hello ai!"}]
  }'


如果要除錯可以先設定不同提供者不同的model_name
curl的 model 指定上述不同的 model_name

2026/10/15

昨天外稽
提到sbom
軟体盤點的東東

安裝 syft

curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /tmp

產生 sbom

/tmp/syft dir:/ -o spdx-json=/tmp/linux_sbom.json --exclude "/home"


安裝 grype 後解析sbom並查看有無漏洞

grype db update

grype linux_sbom.json



2026/10/14

今天graylog 升到 7.2 後

發現資料都沒有出現

查了一下發現以下的問題









[c0047f66-c774-11f1-9869-bc24115e9a75]: index [graylog_345], id [c0047f66-c774-11f1-9869-bc24115e9a75], message [failed to parse field [nf_stop] of type [long] in document with id 'c0047f66-c774-11f1-9869-bc24115e9a75'. Preview of field's value: '2026-10-14T02:12:41.687Z']

[c0047f65-c774-11f1-9869-bc24115e9a75]: index [graylog_345], id [c0047f65-c774-11f1-9869-bc24115e9a75], message [failed to parse field [nf_stop] of type [long] in document with id 'c0047f65-c774-11f1-9869-bc24115e9a75'. Preview of field's value: '2026-10-14T02:11:46.808Z']

[c0047f68-c774-11f1-9869-bc24115e9a75]: index [graylog_345], id [c0047f68-c774-11f1-9869-bc24115e9a75], message [failed to parse field [nf_stop] of type [long] in document with id 'c0047f68-c774-11f1-9869-bc24115e9a75'. Preview of field's value: '2026-10-14T02:12:41.028Z']

[c0047f67-c774-11f1-9869-bc24115e9a75]: index [graylog_345], id [c0047f67-c774-11f1-9869-bc24115e9a75], message [failed to parse field [nf_stop] of type [long] in document with id 'c0047f67-c774-11f1-9869-bc24115e9a75'. Preview of field's value: '2026-10-14T02:12:41.028Z']


Rotate active index 就可以解決



2026/10/10

今天在升pve kernel時才發現很多guest都出現如下的問題
EFI disk 憑証 2026/6 就過期了
解決方法有說明
但因為做完要關几再開几
所以必須找適合的時間處理