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

หา Network Security Key ไร้สาย: วิธีง่าย คำสั่ง CMD และเครื่องมือช่วย

Network Security Key คืออะไร?

Network Security Key คือ รหัสผ่าน Wi-Fi (Wi-Fi Password/Passphrase) ที่ใช้เข้ารหัสและยืนยันตัวตนการเชื่อมต่อระหว่างอุปกรณ์กับ Router/Access Point เป็นรหัสที่คุณใส่ตอนเชื่อมต่อ Wi-Fi ครั้งแรก

ความหมายของข้อความ "Enter the network security key"

เมื่อ Windows/macOS/มือถือ แสดงข้อความ "Enter the network security key" หรือ "Enter network password" หมายถึง: กรุณาใส่รหัสผ่าน Wi-Fi ของเครือข่ายนั้น เพื่อให้อุปกรณ์สามารถเชื่อมต่อและเข้ารหัสการสื่อสารได้

วิธีหา Network Security Key (ลำดับความสะดวก)

1. ดูสติ๊กเกอร์ Router/Modem (เร็วที่สุด - 30 วินาที)

  • พลิก Router/Modem ดูด้านหลัง/ข้าง/ล่าง
  • หา: Wi-Fi Password, WPA Key, WPA2 Key, Passphrase, Security Key, Network Key, Wireless Password, PIN
  • คู่กับ SSID (Network Name)

2. จากคอมพิวเตอร์ Windows ที่เชื่อมต่ออยู่ (1-2 นาที)

วิธี GUI (Control Panel):

  1. Win + R → ncpa.cpl → Enter
  2. คลิกขวา Wi-Fi → Status → Wireless Properties
  3. แท็บ Security → ☑ Show characters

วิธี CMD (Command Prompt) - ต้องเป็น Admin:

# 1. ดู Profile ทั้งหมด
netsh wlan show profiles

# 2. ดูรหัสผ่านของ SSID เฉพาะ (แทน "YourSSID")
netsh wlan show profile name="YourSSID" key=clear

# 3. ดูเฉพาะ Key Content (Password)
netsh wlan show profile name="YourSSID" key=clear | findstr "Key Content"

วิธี PowerShell (Advanced - แสดงทั้งหมดพร้อมกัน):

(netsh wlan show profiles) | Select-String "\:(.+)$" | ForEach-Object {
    $ssid = $_.Matches[0].Groups[1].Value.Trim()
    $result = netsh wlan show profile name="$ssid" key=clear
    if ($result -match "Key Content\s+:\s(.+)") {
        [PSCustomObject]@{SSID=$ssid; Password=$matches[1].Trim()}
    }
} | Format-Table -AutoSize

3. เข้า Router Web Interface (5-10 นาที)

  1. Browser → https://192.168.1.1 (หรือ 192.168.0.1, 10.0.0.1, 192.168.1.254)
  2. Login (admin/admin, admin/password, admin/1234 - ดูสติ๊กเกอร์)
  3. Wireless → Wireless Security → ดู Passphrase/Pre-shared Key

4. ใช้ WPS (Wi-Fi Protected Setup) - ไม่ต้องใส่รหัส

  1. กดปุ่ม WPS บน Router (2-3 วิ จนไฟกระพริบ)
  2. ภายใน 2 นาที: อุปกรณ์ → Connect via WPS / กดปุ่ม WPS บนอุปกรณ์

5. Reset Router (Last Resort)

  1. กดปุ่ม Reset (รูเล็ก ใช้เข็ม) ถือ 10-15 วินาที
  2. Router กลับ Default Settings (SSID/Password ตามสติ๊กเกอร์)
  3. ⚠️ ตั้งค่าทั้งหมดหาย (Port Forward, VPN, DDNS, ฯลฯ)

คำสั่ง CMD/PowerShell ที่น่าสนใจเพิ่มเติม

คำสั่งหน้าที่
netsh wlan show interfacesดูสถานะ Wi-Fi ปัจจุบัน (SSID, BSSID, Signal, Channel, Authentication, Cipher)
netsh wlan show networks mode=bssidสแกนเครือข่ายรอบข้าง แสดง BSSID, Signal, Security, Channel
netsh wlan show wlanreportสร้างรายงาน HTML รายละเอียด (%ProgramData%\Microsoft\Windows\WlanReport\wlan-report-latest.html)
netsh wlan delete profile name="SSID"ลบ Wi-Fi Profile ที่บันทึกไว้ (แก้ปัญหา Cache เก่า)
netsh wlan connect name="SSID"สั่งเชื่อมต่อ Wi-Fi ผ่าน CLI

Network Security Key บนอุปกรณ์อื่นๆ

macOS

  1. Keychain Access → System/iCloud → Passwords → ค้นหา SSID → ☑ Show password

Android 10+

  1. Settings → Wi-Fi → ⚙ → Share → Scan QR Code

Android (Root)

/data/misc/wifi/WpaSupplicant.conf
# psk="password"

iOS/iPadOS

  1. Settings → Passwords → ค้นหา Wi-Fi Name
  2. AirDrop Share Password (อยู่ใกล้เครื่องที่เชื่อมต่ออยู่)

คำถามที่พบบ่อย

Network Security Key เป็นตัวอักษร/ตัวเลขอย่างไร?

  • WPA/WPA2/WPA3-Personal: 8-63 ตัวอักษร ASCII (พิมพ์ได้ทั้งหมด, Case-sensitive)
  • WEP: 10 หรือ 26 ตัวอักษร Hex (0-9, A-F) หรือ 5/13 ASCII
  • WPA2-Enterprise: ไม่ใช้ PSK ใช้ Username/Password + Certificate (EAP)

Default Key ของ Router ยอดนิยม

  • TP-Link: PIN 8 หลักบนสติ๊กเกอร์ หรือ "admin"
  • Netgear: "password" หรือบนสติ๊กเกอร์
  • ASUS: Random บนสติ๊กเกอร์ หรือ "admin"
  • D-Link: "admin" หรือเว้นว่าง หรือบนสติ๊กเกอร์
  • Linksys: "admin" หรือบนสติ๊กเกอร์

ไม่เจอ Show Characters?

  • ต้องเป็น Administrator
  • Group Policy: gpedit.msc → Computer Config → Admin Templates → Network → Windows Connection Manager → "Prohibit showing characters" = Disabled

สรุป

หา Network Security Key เริ่มจาก สติ๊กเกอร์ Router → Windows: ncpa.cpl → Wireless Properties → Show characters → CMD: netsh wlan show profile name="SSID" key=clear → Router Web Interface → WPS → Reset Router (ทีหลังสุด) เลือกวิธีที่สะดวกที่สุดตามสถานการณ์