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

เครื่องมือ Network Security สำหรับตรวจจับ Open TCP/UDP Ports บน Windows: Port Scanner

คำตอบโดยตรง: Port Scanner

เครื่องมือที่ตรวจจับ Open TCP และ UDP Ports บน Microsoft Windows (และ OS อื่นๆ) ได้เร็วที่สุดและเหมาะสมที่สุดคือ Port Scanner

Port Scanner ยอดนิยมและแนะนำ

1. Nmap (Network Mapper) - มาตรฐานอุตสาหกรรม

  • คำสั่งพื้นฐาน: nmap -sS -sU -T4 target_ip (SYN Scan TCP + UDP Scan)
  • 掃描ทั้ง TCP & UDP: nmap -sS -sU -p- -T4 192.168.1.100
  • Version Detection: nmap -sV -sC target
  • Output: -oA scan_result (Normal, XML, Grepable)
  • รองรับ Windows (Installer), Linux, macOS
  • GUI: Zenmap (Official GUI)

2. PowerShell Native (ไม่ต้องติดตั้งเพิ่ม)

# TCP Port Scan (1-10000)
1..10000 | ForEach-Object { 
  $socket = New-Object Net.Sockets.TcpClient
  $result = $socket.BeginConnect("target_ip", $_, $null, $null)
  if ($result.AsyncWaitHandle.WaitOne(100)) { "Port $_ Open" }
  $socket.Close()
}

# หรือใช้ Test-NetConnection (Single Port)
Test-NetConnection -ComputerName target_ip -Port 445

# UDP ยากกว่า ต้องใช้ .NET UdpClient

3. Masscan - เร็วที่สุดสำหรับ Internet-scale

  • masscan -p1-65535,U:1-65535 target --rate 10000
  • Async Transmission สแกน Internet ทั้งโลกได้ใน 6 นาที
  • Windows Binary พร้อมใช้งาน

4. GUI Tools สำหรับ Windows

  • Advanced Port Scanner (Famatech): ฟรี ใช้งานง่าย Multi-threaded
  • Angry IP Scanner: Cross-platform Java GUI
  • PortQry (Microsoft): Command-line Tool สำหรับ Troubleshooting Port Connectivity

ทำไม Port Scanner จึงดีกว่า Vulnerability Scanner สำหรับงานนี้?

ลักษณะPort ScannerVulnerability Scanner
เป้าหมายหา Open Portsหา Vulnerabilities (CVE, Misconfig)
ความเร็วเร็วมาก (Seconds)ช้า (Minutes-Hours)
Intrusivenessต่ำ (แค่ Connect/Probe)สูง (Exploit Attempts, Credentialed Checks)
OutputPort List, Service VersionVuln List, Risk Score, Remediation

เครื่องมือ Network Security อื่นๆ ที่เกี่ยวข้อง

Network Penetration Testing

ใช้ Simulated Attacks เพื่อทดสอบความแข็งแกร่งของเครือข่าย (Penetration Test / Pentest) กระบวนการ: Recon → Scanning (Nmap) → Enumeration → Exploitation → Post-Exploitation → Reporting

Integrity Checking

ตรวจจับการเปลี่ยนแปลงระบบ (File Integrity Monitoring - FIM): Tripwire, AIDE, OSSEC/Wazuh, Windows Defender ATP

CIO / IT Director / IT Manager Roles

  • CIO (Chief Information Officer): IT Strategy, Business Alignment, Digital Transformation, Budget, Governance
  • IT Director: Operational Management, Infrastructure, Projects, Vendor Management, Team Leadership
  • IT Manager: Day-to-day Operations, Ticketing, Resource Allocation, SLA Management

สรุป

สำหรับการ ตรวจจับ Open TCP/UDP Ports บน Windows ให้ใช้ Nmap (Port Scanner) เป็นเครื่องมือหลัก เร็ว แม่นยำ มาตรฐานอุตสาหกรรม PowerShell Native ใช้ได้สำหรับ Quick Check Vulnerability Scanner ใช้เมื่อต้องการประเมินช่องโหว่ลึกขึ้น