Pank's Blog
2026年9月15日 星期二
Windows 11 bypass TPM and create local account
看到選擇語言時,Shift-F10 叫出 CMD,執行 regedit
HKEY_LOCAL_MACHINE\SYSTEM\Setup
下面新增 機碼(Key)LabConfig
再建立以下兩個 DWORD 32位元,數值設為 1
BypassTPMCheck
BypassSecureBootCheck
裝完重開機後,停下來第一個畫面,Shift-F10 叫出 CMD
輸入 start ms-cxh:localonly
會跳出一個對話框,可以直接建立本機帳號
2026年8月27日 星期四
WinBox legacy version 3.x
UI 比較漂亮,但也肥大許多(解開大於50M),還是習慣使用舊版(x64 只有 2.2M)
WinBox 3.43
Legacy version of advanced desktop utility to manage RouterOS limitless configuration options.
With WinBox you can setup any of MikroTik products.
Available only on Windows.
官方網址
2026年8月12日 星期三
Windows 10 ESU extended to 2027-10-12
微軟延長了 Windows 10 ESU 支援時間至 2027-10-12 (又加一年)
可以使用 ConsumerESU 腳本快速啟用 ESU
下載 ZIP 包解開後,以系統管理員身分執行 Consumer_ESU_Enrollment_run.cmd
New Zealand Dazzle Apple
鈕西蘭的 Dazzle 蘋果真是超好吃啊
爽脆多汁口感,貼紙上有 dazzle 字樣及 PLU 編號 3529
據說是經歷 20 年研發,農業科技的結晶
附圖取自官網 https://www.dazzleapple.com/
2026年6月26日 星期五
DNS-PERSIST-01 DCV
它是用綁定帳號,在域名直接設上 accounturi 的 TXT 資料,
來達到長效授權,之後經由綁定帳號來申請的憑證,就直接過了,不需再設定 DNS
已經上 Staging 環境 (--server letsencrypt_test)
預計 2026 Q2 上正式,應該快了
使用 acme.sh 先下指令取得要設定的 TXT
acme.sh --make-dns-persist-value --dns-persist-wildcard -d {domain}
設好之後,就可以 issue
acme.sh --issue -d {domain} -d *.{domain} --dns-persist
尚未上正式前,用正式的 Server (--server letsencrypt) 會收到錯誤
Cannot get domain token entry {domain} for dns-persist-01
Supported validation types are: tls-alpn-01 http-01 dns-01 , but you specified: dns-persist-01
2026年6月16日 星期二
Save Web to PNG
方法1 Playwright
npm install -g playwright
npx playwright install-deps
npx playwright install chromium
npx playwright screenshot --full-page --wait-for-timeout=3000 https://24h.pchome.com.tw screenshot.png
方法2 Chromium
dnf install chromium -y
chromium-browser --headless --disable-gpu --screenshot --window-size=1920,1080 https://24h.pchomec.com.tw
結果會輸出到當前目錄的 screenshot.png
方法1會自動捲動,存下完整頁面,方法2局限於指定的大小
2026年5月14日 星期四
scp remote to remote
在 HostC 下 scp 指令要從 HostA 複製檔案到 HostB,都透過 Key auth
預設情況下 (沒有加參數 -3)
HostC 對 HostA 要建 Key,HostA 對 hostB 要建 Key
資料流是直接從 HostA 到 HostB,沒有經過 HostC
第二種情況,透過 HostC 中繼,加參數 -3
HostC 對另外兩台建 Key,資料流有經過 HostC 本地
-3 Copies between two remote hosts are transferred through the local host.
Without this option the data is copied directly between the two remote hosts.
Note that, when using the legacy SCP protocol (via the -O flag),
this option selects batch mode for the second host as scp cannot ask for passwords or passphrases for both hosts.
This mode is the default.
2026年5月11日 星期一
Copy fail and Dirty Frag
Copy fail 及 Dirty Frag 這兩個漏本地提權(LPE)漏洞,在 2026 年 5 月被揭露,
漏洞已存在很久,幾乎影響所有的 Linux
Github 上面已經有很多 POC 程式
暫時解決方案是禁用相關的 Kernel 模組
以下是 for RedHat 系的 Linux
# Copy fail
echo "install af_alg /bin/false" > /etc/modprobe.d/disable-af_alg.conf
echo "install algif_aead /bin/false" >> /etc/modprobe.d/disable-af_alg.conf
echo "install algif_skcipher /bin/false" >> /etc/modprobe.d/disable-af_alg.conf
# Dirty Frag
echo "install esp4 /bin/false" > /etc/modprobe.d/disable-esp.conf
echo "install esp6 /bin/false" >> /etc/modprobe.d/disable-esp.conf
echo "install rxrpc /bin/false" >> /etc/modprobe.d/disable-esp.conf
lsmod | egrep "af_alg|algif_aead|algif_skcipher|esp4|esp6|rxrpc"
若有結果,表示已載入該模組,用 rmmod 移除
2026年5月10日 星期日
Mount SSHFS in Windows
https://github.com/winfsp/winfsp
https://github.com/winfsp/sshfs-win
一般用帳密掛載,預設是掛載使用者的 home 目錄
net use Z: \\sshfs\username@host
使用 SSH Key (前綴從 sshfs 變成 sshfs.k),SSH Key 存放路徑 C:\Users\username\.ssh
net use Z: \\sshfs.k\username@host
若要掛其他目錄,前綴從 sshfs 或 sshfs.k,請使用相對路徑
例如 username 的 home 目錄是 /home/username,要掛載 /data
net use Z: \\sshfs.k\username@host\..\..\data
要使用絕對路徑,前綴要使用 sshfs.r 或 sshfs.kr
net use Z: \\sshfs.kr\username@host\data
2026年5月3日 星期日
JOE 4.8
在 Linux 環境下,一直都是使用 joe 編輯器 (JOE - Joe's own editor)
這個編輯器應該算冷門了,非 vi、vim 的編輯器中,nano 或 pico 使用群大概都比它多
joe 是使用 Ctrl 組合鍵來達到各種編輯動作
從 2018 年發布 4.6 版本以來, 長期未更新,最近關注它,發現竟然有 4.7 及 4.8 版,都是在 2026 年更新的
joe-4.8-1.el8.x86_64.rpm
以下是 AI 整理的更新摘要
joe 在 4.7 與 4.8 版中,除了日常的效能調校與臭蟲修復之外,也加入了多項實用功能,
以提升編輯器在現代終端機環境下的穩定性與安全性。
1. 核心安全性增強
標籤檔 (Tags File) 弱點修復 (JOE 4.8): 修正了先前版本中存在的重大安全性問題。
在舊版中,惡意建構的標籤檔可能會欺騙使用者執行 shell 指令。
4.8 版禁止了透過標籤檔開啟檔案時使用 ! 語法,強化了系統安全性。
2. 編輯器功能與除錯增強
歷史紀錄與巨集控制: 在巨集中允許使用 notmod 指令,
能夠在提示視窗中不將指令加入命令歷史紀錄,使歷史紀錄保持乾淨。
區塊過濾提示的歷史紀錄現在會儲存在狀態檔案中。
編譯器錯誤解析器 (Compiler Error Parser) 改進: 新增 parserr_homeonly 選單選項。
啟用後,錯誤解析器會忽略使用者家目錄以外的檔案錯誤,避免系統檔案的錯誤訊息干擾開發者的除錯視圖。
自訂選單改良 (JOE 4.7-4.8):重新整理了 ^T 選項設定選單,將不常使用的選項移至子選單中,
並支援在選單系統中加入自訂的巨集。
Windows 11 bypass TPM and create local account
跳過 TPM 檢查及建立本機帳號,適用 Windows 11 25H2 Aug 2026 版本 看到選擇語言時,Shift-F10 叫出 CMD,執行 regedit HKEY_LOCAL_MACHINE\SYSTEM\Setup 下面新增 機碼(Key)LabConfig ...
-
禁止 LINE 電腦版自動或強制更新的方法 LINE 電腦版啟動都會去連這個更新資訊檔 https://desktop.line-scdn.net/win/v1/real/update_info.json 內容大概長這樣 可以看出針對各版本的更新 type 有 force, ...
-
需先安裝 XZ Utils for Windows 把 xz.exe 放在 PATH 有指到的地方 curl -LOs https://github.com/rocky-linux/sig-cloud-instance-images/raw/Rocky-9.2.20230513...
-
RustDesk 使用上跟 Anydesk, Teamviewer 差不多,也是用 ID + Password 就可以連線 其優點是開源,可以自架 ID/Relay Server 在 Client 裝好的情況下,直接是可以使用的,預設應該是使用 RustDesk 的公共 Ser...
-
HiNet MOD 機上盒(註1),在實體電源關機(註2)後兩分鐘, 會造成 RouterBoard 的 PPPoE 斷線重連,有夠怪的問題 這個問題追了好久,終於找到兩者竟然有關聯 經過多次驗證,確認了這個關聯性,就在機上盒關機後的兩分鐘(正負5秒), RouterBoard ...
-
xrdp 是 Linux 版的 RDP server (遠端桌面) 它運作時需要 Xvnc 的 libvnc.so, 所以安裝時需要連同 VNC 一起安裝(只需 minimal) dnf -y install xrdp tigervnc-server-minimal system...
-
以前都是用 rp-pppoe 套件裡的 adsl-setup 來設定 PPPoE 現在比較新的 Linux 已經沒有這個套件了,要用 NetworkManager 的 nmcli 來設定 設定也很簡單,準備帳號、密碼及網路卡就行了 以下範例帳號是 xxxx@hinet.net 密...
-
本例是從 8.0U3 升到 8.0U3d,若從更舊的版本升級,不確定是否適用 先把所有 VM 關機,進入維護模式 把 depot 升級檔 VMware-ESXi-8.0U3d-24585383-depot.zip 放到機器內 ssh ESXi 先查看 depot 有那些 Prof...
-
SQL injection 是個老東西,但 20 幾年過去,它依然健在! 在所有 Web 攻擊,弱點佔比仍然是最高的 NEITHNET 精選講座-資安教室:SQL injection - CYBERSEC 2021 臺灣資安大會 NEITHNET_SQL_injection.pp...
-
現在自架的 Mail Server 若沒有簽章,寄出的信件有很大的機會被擋或歸類在垃圾信 所以 SPF + DKIM 已經是必要的設定 環境 CentOS + Postfix,文中的域名均以 yourdomain.com 作為範例 安裝所需套件 yum -y install py...
-
RouterOS 在 7 版以後支援 WireGuard 註: WireGuard 在 Linux Kernel 5.6 版開始內建 設定滿簡單的,在選單 WireGuard New Interface,Private Key 及 Public Key 不用填,會自動產生 在 I...