Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบเครือข่าย >> ความปลอดภัยเครือข่าย

Network Security Key เก็บอยู่ที่ไหนใน Windows Registry? (และวิธีค้นหาที่ง่ายกว่า)

จริงๆ แล้วไม่ควรไปแก้ Registry โดยตรง

Windows เก็บ Wi-Fi Profile (รวม PSK) ใน Registry ที่:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles\
แต่ข้อมูลถูกเข้ารหัส (Encrypted) โดย DPAPI ไม่ใช่ Plain Text การดึงต้องใช้ Tool เฉพาะ (เช่น WirelessKeyView ของ NirSoft) หรือ PowerShell Script

วิธีที่ง่ายและปลอดภัยกว่า (แนะนำ)

PowerShell (รันแบบ Admin)

(netsh wlan show profiles) | Select-String "\s+(\S+)$" | ForEach-Object { $ssid=$_.Matches[0].Groups[1].Value; netsh wlan show profile name="$ssid" key=clear } | Select-String "Key Content\s+:\s+(.+)" | ForEach-Object { "$($ssid) : $($_.Matches[0].Groups[1].Value)" }

GUI Tool ฟรี

  • WirelessKeyView (NirSoft) - Portable, แสดง SSID, Key Type, Key (ASCII/Hex)
  • WiFi Password Revealer (Magical Jelly Bean)

สรุป

อย่าไปขุด Registry เอง ใช้ netsh wlan show profile key=clear หรือ Tool ที่เชื่อถือได้ จะรวดเร็ว ถูกต้อง และปลอดภัยกว่า