2024/07/01
2024/06/15
2024/06/13
2024/06/12
本次弱掃有關SSH出現以下二個中風險
The remote SSH server is configured to allow / support weak key
exchange (KEX) algorithm(s).
Detection Result
The remote SSH server supports the following weak KEX algorithm(s):
KEX algorithm | Reason
------------------------------------------------
diffie-hellman-group-exchange-sha1 | Using SHA-1
2024/06/05
2024/05/27
2024/05/26
2024/05/22
這几天用ZAP在弱掃
當網站很大時 因為會產生很大量的cache
所以要確保執行弱掃那台几器的HD空間要夠
不然有可能還沒做完就爆了
另外有很多網站都出現以下的報告
查了一下 可以在httpd.conf 設定
新增以下內容
<IfModule mod_headers.c>
Header set X-Frame-Options "SAMEORIGIN"
Header set Content-Security-Policy "default-src 'self'"
</IfModule>
設完要重啟apache
另外 如果有參考到外面的任何元件
版面是會亂掉的
這個要特別注意
設完後再掃一次出現另一個報告
如果要再處理
Header set 就要再改成如下的設定
Header set Content-Security-Policy "frame-ancestors 'self'; form-action 'self'; base-uri 'self'; img-src 'self'; default-src 'self'; script-src 'self'; style-src 'self';"
當然影響範圍就會更大
2024/05/16
2024/05/10
2024/05/09
2024/05/08
2024/05/06
2024/04/29
2024/03/28
2024/03/15
2024/03/14
2024/03/13
2024/03/11
2024/03/10
2024/03/05
2024/02/29
2024/02/26
2024/02/24
2024/02/22
2024/02/21
2024/02/16
2024/02/15
2024/02/03
2024/01/29
2023/12/31
2023/12/29
2023/12/23
2023/12/22
2023/12/15
2023/12/10
今天在玩winget
記錄一下在 win11 碰到的問題
內建有安裝但下
winget search notepad 找不到任何東西
要安裝最新版本
https://github.com/microsoft/winget-cli/releases/
目前最新
https://github.com/microsoft/winget-cli/releases/download/v1.6.3133/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
下載後打開
powersell
add-appxpackage ./下載檔名 才能安裝
直接點二下無法安裝
裝好後無法使用 msstore 資料源
一直出現錯誤
搜尋來源時失敗: msstore
執行命令時,發生意外的錯誤:
0x8a15005e : The server certificate did not match any of the expected values.
winget source reset 也沒用
查了才發現 msstore 憑証有問題 有夠無言
下指令bypass msstore 憑証
winget settings --enable BypassCertificatePinningForMicrosoftStore
或加入以下機碼
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppInstaller]
"EnableBypassCertificatePinningForMicrosoftStore"=dword:00000001
winget install 一直跳出 UAC 畫面
安裝 gsudo 解決
winget install gerardog.gsudo
重開几
gsudo winget upgrade --all
或
sudo winget upgrade --all
安裝時還是會跳出 gsudo 的UAC 不過只會跳一次 安裝軟体不會再跳
方便好用的工具
尤其是OS裝完後續安裝軟体
還有更新目前安裝的所有軟体
gsudo winget upgrade --all
winget pin add <package> --version
自動接受安裝合約
--accept-package-agreements