คำสั่ง CMD สำหรับดู Wi-Fi Profile และ Security Key
1. ดูรายชื่อ Wi-Fi Profile ที่เคยเชื่อมต่อ
netsh wlan show profiles
2. ดูรายละเอียด Profile (รวม Security Key)
netsh wlan show profile name="Your_SSID" key=clear
👉 ดูที่บรรทัด Key Content = Network Security Key (รหัสผ่าน Wi-Fi)
3. ดู Encryption Type และ Authentication
netsh wlan show profile name="Your_SSID"
ดูบรรทัด:
- Authentication: WPA2-Personal / WPA3-Personal / Open / WEP
- Cipher: CCMP (AES) / GCMP / TKIP / WEP
ตาราง Encryption Types ที่พบบ่อย
| Authentication | Cipher (Encryption) | ความปลอดภัย | หมายเหตุ |
| WPA3-Personal | GCMP-256 / CCMP-128 | 🟢 สูงสุด | รองรับอุปกรณ์ใหม่ (Wi-Fi 6/6E/7) |
| WPA2-Personal | CCMP (AES) | 🟢 สูง | มาตรฐานปัจจุบัน ใช้ AES ไม่ใช่ TKIP |
| WPA2-Personal | TKIP | 🟡 กลาง | เก่า มีช่องโหว่ ไม่แนะนำ |
| WPA-Personal | TKIP/CCMP | 🟡 กลาง | WPA1 แก่ |
| WEP | WEP (RC4) | 🔴 ต่ำมาก | แฮกได้ง่าย ห้ามใช้ |
| Open | None | 🔴 ไม่มี | Public Wi-Fi ใช้ VPN |
🔧 คำสั่งเพิ่มเติมที่มีประโยชน์
netsh wlan show interfaces # ดูสถานะ Interface, SSID, BSSID, Signal, Channel
netsh wlan show drivers # ดู Driver Version, รองรับ Standards ไหน
netsh wlan delete profile name="SSID" # ลบ Profile ที่บันทึกไว้
netsh wlan set hostednetwork mode=allow ssid=MyHotspot key=Password123 # สร้าง Hotspot
netsh wlan start hostednetwork # เริ่ม Hotspot
netsh wlan stop hostednetwork # หยุด Hotspot
⚠️ ข้อจำกัด
- ต้องรัน CMD Run as Administrator
- ดู Key ได้เฉพาะ Profile ที่เคยเชื่อมต่อและบันทึกไว้บนเครื่องนี้
- ไม่สามารถดู Key ของเครือข่ายที่ไม่เคยเชื่อมต่อมาก่อน
🔍 วิธีเช็ค Encryption Type บนมือถือ (ไม่ต้อง Root)
- Android: Settings > Wi-Fi > คลิกเครือข่าย > ดู Security Type (WPA2/WPA3/WEP)
- iOS: Settings > Wi-Fi > (i) > ดู Security (WPA2/WPA3)
💡 Best Practice: ตั้งค่า Wi-Fi ให้ปลอดภัยที่สุด
- ใช้ WPA3-SAE (ถ้ารองรับ) หรือ WPA2-PSK (AES/CCMP)
- ปิด WPS (Wi-Fi Protected Setup) - มีช่องโหว่ Brute Force PIN
- ตั้ง Passphrase ยาว ≥ 12 ตัวอักษร ผสมพิมพ์ใหญ่/เล็ก/ตัวเลข/สัญลักษณ์
- เปิด Guest Network สำหรับ IoT/แขก
- อัปเดต Firmware เราเตอร์เป็นประจำ