如何解決 SSH Server 使用了不安全的加密演演算法: ARCFOUR、CBC、HMAC-MD5、HMAC-RIPEMD160

弱點掃瞄

弱點 1: SSH Supports Weak Cipher

The SSH server is configured to support either Arcfour or Cipher Block Chaining (CBC) mode cipher algorithms. SSH can be configured to use Counter (CTR) mode encryption instead of CBC. The use of Arcfour algorithms should be disabled.

  • Severity: Medium
  • Risk: A weak cipher has been detected.
  • Recommendation: Configure the SSH server to disable Arcfour and CBC ciphers.

弱點 2: SSH Supports Weak MAC

The SSH server is configured to support MD5 algorithm. The cryptographic strength depends upon the size of the key and algorithm that is used. A Modern MAC algorithms such as SHA1 or SHA2 should be used instead.

  • Severity: Medium
  • Risk: A weak Message Authentication Code (MAC) algorithm has been detected.
  • Recommendation: Configure the SSH server to disable the use of MD5.

Read more

如何解決 Web/Mail Server 使用了不安全的 SSL 通訊協定

弱點掃瞄

弱點: SSL/TLS Service Supports Weak Protocol

Transport Layer Security (TLS), the successor to Secure Socket Layer (SSL), is a network protocol that encrypt communications between TLS servers (e.g., websites) and TLS clients (e.g., web browsers). Every communication is secured by a cipher suite: a combination of several algorithms working in concert. Networking protocols do not have a defined lifetime, but academics, researchers, and nation states are constantly evaluating them for weaknesses. Consensus on which protocols are untrustworthy evolves over time, and if communications are sent with a weak protocol then that communication can be altered or decrypted.

  • Severity: High
  • Risk: A TLS service was observed supporting weak protocols.
  • Recommendation: Disable the protocols listed in the evidence column of the measurement.

Read more

如何自動將網站的 http:// 網址轉址為 https://

弱點掃瞄

弱點: Site does not enforce HTTPS

The site responds to HTTP requests without ultimately redirecting the browser to a secure version of the page. Since the site allows plaintext traffic, a man-in-the-middle attacker is able to read and modify any information passed between the site and the user. There are a variety of situations in which an attacker can intercept plaintext traffic in a man-in-the-middle position, including but not limited to:

  1. Open Wi-Fi Hotspots
  2. WPA/WPA2 encrypted hot-spots where the attacker connected before the victim
  3. Malicious Wi-Fi access points
  4. Compromised switches and routers
  5. ARP poisoning on the same wired network

It's important to remember that in many of the above situations, an attacker can not only read traffic, but also actively modify the traffic. Even if a site that does not contain sensitive information, an attacker can still inject malicious content to a user』s browser.

  • Severity: High
  • Risk: Site does not enforce the use of HTTPS encryption, leaving the user vulnerable to man-in-the-middle attackers (who can falsify data and inject malicious code).
  • Recommendation: Any site served to a user (possibly at the end of a redirect chain) should be served over HTTPS.

Read more

[Android Auto]如何解決導航時 GPS 的訊號不良、訊號中斷問題

Android Auto 車機的 GPS 定位問題

我的車機是 Pioneer AVH-Z9250BT,手機是小米 12,我通常是使用無線的方式連接車機的 Android Auto

不過在車機上的 Android Auto 使用 Google Maps 導航時,偶爾會出現行車位置漂移、GPS 訊號中斷、正在搜尋 GPS 訊號,或無法顯示地圖...之類的問題! 但是同一時間,如果我開啟手機上的導航王來查看,導航王的定位卻又無比正確!

原本以為是我的車機太爛,或有相容性的問題,上網尋找答案,又發現很多網友有同樣的問題,其中也不乏一些百萬名車內建的車機! 幸好有找到解決方法!
Read more

Windows 常用的指令整理

這些指令的執行檔通常是放在 C:\Windows\System32\,可在這些地方執行指令:

  • 開始功能表的「執行」
  • Win + R 的執行視窗
  • Win + QWin + S 的搜尋視窗
  • cmd 命令提示字元
  • 檔案總管的「網址列」

Read more

修改 Windows 的休眠設定,避免電腦自動休眠

我的電腦在某次更新 Windows 10 之後,原本已設定好不讓它自動關機的電腦竟會進入休眠狀態! 原因似乎是進入休眠的時間被改動了,而在 Windows 的設定中卻不容易找到「休眠」的細部選項!

這 Windows 可真愛找麻煩!

先來看一下 Windows 10 關機選單的 4 個選項做為相關知識:

  1. 睡眠 (Sleep, S3): 會將桌面及應用程式的狀態寫入至記憶體,讓電腦以極低的耗電方式維持在開機的狀態,以便在喚醒電腦時,可以立即回到睡眠前的電腦狀態。從 Windows Vista 起,睡眠 (Sleep) 模式已取代了待命 (Standby) 模式。
  2. 休眠 (Hibernate, S4): 會將桌面及應用程式的狀態寫入至磁碟再關閉電腦的電源,電腦下次開機會恢復到休眠前的電腦狀態。從休眠狀態下開機的速度會比睡眠還慢。
  3. 關機 (Shut down, S5): 關閉所有應用程式並關閉電腦的電源,不會自動儲存任何狀態。
  4. 重新開機 (Restart): 關閉所有應用程式並重新啟動電腦及作業系統。

Read more

你知道電腦版的 Line 會導致手機上的 Line 收不到訊息與來電嗎?

Line 已經是台灣人不可或缺的通訊軟體了,不論是交友或工作,都會被要求加 Line。

前一陣子在我的手機上,收到 Line 的訊息都不會跳出提醒,甚至還會自動掛斷 Line 的語音通話,讓我覺得很困擾!

後來才發現這些問題其實都與「電腦版」的 Line,以及 Windows 10 的「專注輔助」模式有關。

請留意,本文是針對安裝了「電腦版」的 Line 之後所發生的問題,原本手機上關於 Line 的通知設定不在本文的討論範圍...

Read more

CentOS 5/6 改為可用的 yum 套件庫來源 (2022)

若執行 yum 出現:

http://mirror.centos.org/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below knowledge base article

表示系統預設的 yum 套件庫可能已經不存在!

我們可以在 vault.centos.org 找到可用的套件庫來源:

  • vault.centos.org: http
  • archive.kernel.org: http - rsync (rsync://archive.kernel.org::centos-vault/)
  • linuxsoft.cern.ch: http - rsync (rsync://linuxsoft.cern.ch/centos-vault/)
  • mirror.nsc.liu: http - rsync (rsync://mirror.nsc.liu.se::centos-store/)

Read more

如何解決 Chrome 瀏覽器每次都要重新登入 Google 帳號的問題

公司同事反應,他的筆電每次重新開機之後,打開 Chrome 瀏覽器時,都要重新登入 Google 帳號!

經檢查,他是去改到了瀏覽器的 Cookie 選項!

Read more

隻狼: 暗影雙死 (Sekiro: Shadows Die Twice) 簡易攻略

隻狼》是「類魂系列」的動作 RPG 遊戲,大致上是在講述一個「不死人」不分青紅皂白,把葦名國一堆守城的將領殺光光,最終導致外敵入侵、葦名國滅亡的故事。

這類高難度的受死遊戲,我以前玩過《仁王》、《惡魔靈魂》、《黑暗靈魂》...,但都沒有像《隻狼》這樣兼具困難度與爽度!

其實「這遊戲滿簡單的,就是有點困難!」這麼好玩的遊戲當然要來推薦給永不服輸的你來玩。

《隻狼》已經發行兩年多了,應該不用怕爆雷才對,沒玩過隻狼的大概也看不懂我在寫什麼。這份只是簡易的攻略流程及重點資料整理,畢竟,這遊戲最難、最耗時的地方是在打 Boss,更多的細節、路線就留給玩家自己去探索。

我是這兩天重玩《隻狼》才想說整理一份簡易攻略,也裝了 MOD 把滄桑的隻狼變成了「隻娘」 (後面會教你如何換造型)。我打完一週目的所有 Boss,完成主線及重要支線,也收集完所有重要的道具,前後大概花了 16 個小時。

Read more

return top