這是歷史版本頁面 — 看 Wireshark (64-bit) 最新版本

網路卡頓找不到原因?Wireshark 抓封包看真相

Wireshark (64-bit) 軟體圖示 Wireshark (64-bit) 2.0.0 (64-bit) 資料更新 2015-11-19 閱讀約 6 分鐘

網路變慢、連線不穩、某個服務突然連不上,你第一個念頭是重開機、重插網路線,但問題還是反覆出現。你想知道到底是哪個環節出錯,是 DNS 沒回應、TCP 一直重傳,還是某支程式在背景偷傳資料,卻只能看著工作管理員的百分比猜。這種時候,你需要的是把網路上實際在跑的封包一層一層拆開來看。

一般人習慣先 ping 看看、開網頁測速,這些工具只能告訴你「通不通」「快不快」,無法告訴你「到底發生什麼事」。封包分析工具的切入點,是把你電腦進出的每一筆網路流量記錄下來,再用你能讀懂的方式呈現,讓你可以沿著封包內容去追問題的源頭。它不是拿來測速的,是拿來「看內容」的。

01Wireshark 到底能拿來做什麼?

它是一套網路封包分析工具,可以即時擷取電腦網路介面卡進出的流量,也可以讀取先前存下來的封包檔做離線分析。常見用途包含:找出連線緩慢或中斷的原因、確認某個協定是否正常運作、檢查是否有異常流量,以及作為學習網路協定的教材。它會把封包內容解碼成人類可讀的格式,例如 HTTP、DNS、TCP 等,方便你逐層檢視。

02抓了一堆封包,密密麻麻的看不懂怎麼辦?

這是剛開始最常遇到的障礙。它提供顯示過濾器,你可以輸入條件,例如只顯示某個 IP 位址、某個通訊埠或某種協定的封包,把不相關的流量暫時隱藏。介面本身是英文的,但過濾語法不難學,常見的像是 `ip.addr == 192.168.1.1` 或 `tcp.port == 443`。先從過濾單一協定開始,會比直接看全部流量容易上手。

03可以抓無線網路的封包嗎?

可以,但有限制。它支援從無線網路介面卡擷取封包,前提是你的無線網卡和驅動程式必須支援監聽模式,否則只能抓到自己的電腦進出的流量,無法看到網路上其他裝置的封包。如果你只是想分析自己這台電腦的連線問題,一般無線網卡就夠用;但若是要分析整個無線網路的流量,需要額外確認硬體是否支援。

04抓到的封包如果是加密的,還能看到內容嗎?

它可以把加密的流量完整記錄下來,但內容是亂碼,無法直接閱讀。除非你擁有加密金鑰,例如 SSL/TLS 的私鑰,才能夠在軟體中設定金鑰來解密。WPA/WPA2 的無線網路加密,也需要知道密碼才能解密。換句話說,它能告訴你「有加密流量在跑」,但看不到裡面的實際內容。

05抓下來的資料可以存下來或轉成其他格式嗎?

可以。擷取的封包可以存成檔案,之後隨時用這套軟體重新開啟分析。匯出方面,支援輸出成 XML、CSV、純文字等格式,方便你帶到其他工具處理,或是把特定封包片段貼到報告裡。如果你只需要命令列操作,它也附帶一個叫 TShark 的文字介面工具,可以在不開啟圖形介面的狀況下做同樣的擷取與分析。

06我沒學過網路概論,適合用這套軟體嗎?

它的學習曲線相當陡峭,使用前最好具備基本的網路概念,例如 IP、TCP、UDP、DNS 這些名詞的意義。如果你只是偶爾想查一下為什麼網路很慢,直接打開它可能會被大量技術細節淹沒。建議先從官方文件或教學文章學過一輪基礎過濾與常見協定,再拿實際問題來練習,會比較有方向。

07資安人員用這套軟體來做什麼?

它常被用於分析網路流量、偵測異常行為、調查資安事件。例如檢查是否有可疑的對外連線、確認惡意程式是否在背景傳輸資料,或是分析攻擊封包的特徵。由於它是免費且開源的工具,許多資安相關的教學與調查報告都會以它為範例。不過,它只是分析工具,不會主動跳出警報,需要你自己知道要找什麼。

08我只是想知道誰在佔用頻寬,有更簡單的選擇嗎?

如果你的目的只是「看哪台裝置或哪個程式用掉最多流量」,這套軟體對你來說可能過於複雜。它給的是封包層級的細節,不是流量統計儀表板。像 SmartSniff 或 Speedify 這類工具,介面更簡單,或是有不同的呈現方式,可能更符合你的需求。Wireshark 的強項是深入分析,不是快速看統計數字。

09電腦等級不夠好,跑得動嗎?

它本身是免費軟體,但擷取大量封包時會消耗不少記憶體和磁碟空間,官方說明也提到需要足夠的 RAM 和磁碟空間。如果你的電腦規格較舊,同時又抓取高流量的網路介面,可能會感到明顯延遲。建議先抓短時間、小流量的封包測試看看,再決定是否要擴大擷取範圍。

10介面是英文的,有中文版嗎?

這套軟體的介面語言是英文,沒有內建繁體中文介面。如果你對英文介面不熟悉,操作上會需要多花時間適應。不過,網路上有大量中文教學文章和影片,可以邊看邊學。若你完全無法接受英文介面,可以考慮其他有中文介面的網路工具,但功能深度可能不同。

11用這套軟體去抓別人的網路流量,合法嗎?

軟體本身是合法的開源工具,用於網路分析與除錯沒有問題。但未經授權攔截他人網路流量,在某些司法管轄區可能違法。如果你在公司或學校使用,最好先確認單位的網路使用政策;如果是家用網路,也建議只分析自己擁有的裝置。法律問題取決於使用情境,不在軟體本身。

12這套軟體還有人在維護嗎?

有,而且更新相當頻繁。它的版本紀錄從 2010 年至今收錄了超過一百五十個版本,近兩年內有十多次更新,屬於持續活躍開發的專案。它也是開放原始碼軟體,由全球的網路專家共同維護,功能會持續擴充。如果你需要長期依賴一套網路分析工具,它的更新狀況相對穩定。

下載與官方連結

前往官方網站 下載 Wireshark (64-bit)

Wireshark-win64-2.0.0.exe · 38.98 MB · 連結指向軟體原廠

版本紀錄

再看 5 筆

看完整版本清單

這一版改了什麼

What's new in this version:

WHAT'S NEW:
- Wireshark 2.0 features a completely new user interface which should provide a smoother, faster user experience. The new interface should be familiar to current users of Wireshark but provide a faster workflow for many tasks
- The Windows installer provides the option of installing either the new interface (“Wirehsark”) or the old interface (“Wireshark Legacy”). Both are installed by default. Note that the legacy interface will be removed in Wireshark 2.2
- The OS X installer only provides the new interface. If you need the old interface you can install it via Homebrew or MacPorts
- Wireshark’s Debian- and RPM-based package definitions provide the new interface in the “wireshark-qt” package and the old interface in the “wireshark-gtk” package. It is hoped that downstream distributions will follow this convention

New and Updated Features:

The following features are new (or have been significantly updated) since version 2.0.0rc3:
- An RTP player crash has been fixed
- Flow graph issues have been fixed. Bug Bug 11710
- A Follow Stream dialog crash has been fixed. Bug Bug 11711
- An extcap crash has been fixed
- A file merge crash has been fixed. Bug Bug 11718
- A handle leak crash has been fixed. Bug Bug 11702
- Several other crashes and usability issues have been fixed

The following features are new (or have been significantly updated) since version 2.0.0rc2:
- Column editing now works correctly. Bug Bug 11433
- Renaming profiles has been fixed. Bug Bug 11658
- “File”→Merge no longer crashes on Windows. Bug Bug 11684
- Icons in the main toolbar obey magnification settings on Windows. Bug Bug 11675
- The Windows installer does a better job of detecting WinPcap. Bug Bug 10867
- The main window no longer appears off-screen on Windows. Bug Bug 11568

The following features are new (or have been significantly updated) since version 2.0.0rc1:
- For new installations on UN*X, the directory for user preferences is $HOME/.config/wireshark rather than $HOME/.wireshark. If that directory is absent, preferences will still be found and stored under $HOME/.wireshark

Qt port:
- The SIP Statistics dialog has been added
- You can now create filter expressions from the display filter toolbar
- Bugs in the UAT preferences dialog has been fixed
- Several dissector and Qt UI crash bugs have been fixed
- Problems with the OS X application bundle have been fixed

The following features are new (or have been significantly updated) since version 1.99.9:

Qt port:
- The LTE RLC Graph dialog has been added
- The LTE MAC Statistics dialog has been added
- The LTE RLC Statistics dialog has been added
- The IAX2 Analysis dialog has been added
- The Conversation Hash Tables dialog has been added
- The Dissector Tables dialog has been added
- The Supported Protocols dialog has been added
- You can now zoom the I/O and TCP Stream graph X and Y axes independently
- The RTP Player dialog has been added
- Several memory leaks have been fixed

The following features are new (or have been significantly updated) since version 1.99.8:

Qt port:
- The MTP3 statistics and summary dialogs have been added
- The WAP-WSP statistics dialog has been added
- The UDP multicast statistics dialog has been added
- The WLAN statistics dialog has been added
- The display filter macros dialog has been added
- The capture file properties dialog now includes packet comments
- Many more statistics dialogs can be opened from the command line via -z ...
- Most dialogs now have a cancellable progress bar
- Many packet list and packet detail context menus items have been added
- Lua plugins can be reloaded from the Analyze menu
- Many bug fixes and improvements

The following features are new (or have been significantly updated) since version 1.99.7:

Qt port:
- The Enabled Protocols dialog has been added
- Many statistics dialogs have been added, including Service response time, DHCP/BOOTP, and ANSI
- The RTP Analysis dialog has been added
- Lua dialog support has been added
- You can now manually resolve addresses
- The Resolved Addresses dialog has been added
- The packet list scrollbar now has a minimap
- The capture interfaces dialog has been updated
- You can now colorize conversations
- Welcome screen behavior has been improved
- Plugin support has been improved
- Many dialogs should now more correctly minimize and maximize
- The reload button has been added back to the toolbar
- The "Decode As" dialog no longer saves decoding behavior
- You can now stop loading large capture files
- The Bluetooth HCI Summary has been added

The following features are new (or have been significantly updated) since version 1.99.6:

Qt port:
- The Bluetooth Devices dialog has been added
- The wireless toolbar has been added
- Opening files via drag and drop is now supported
- The Capture Filter and Display Filter dialogs have been added
- The Display Filter Expression dialog has been added
- Conversation Filter menu items have been added
- You can change protocol preferences by right clicking on the packet list and details

The following features are new (or have been significantly updated) since version 1.99.4 and 1.99.5:

Qt port:
- Capture restarts are now supported
- Menu items for plugins are now supported
- Extcap interfaces are now supporte
- The Expert Information dialog has been added
- Display and capture filter completion is now supported
- Many bugs have been fixed
- Translations have been updated

The following features are new (or have been significantly updated) since version 1.99.3:

Qt port:
- Several interface bugs have been fixed
- Translations have been updated

The following features are new (or have been significantly updated) since version 1.99.2:

Qt port:
- Several bugs have been fixed
- You can now open a packet in a new window
- The Bluetooth ATT Server Attributes dialog has been added
- The Coloring Rules dialog has been added
- Many translations have been updated. Chinese, Italian and Polish translations are complete
- General user interface and usability improvements
- Automatic scrolling during capture now works
- The related packet indicator has been updated

The following features are new (or have been significantly updated) since version 1.99.1:

Qt port:
- The welcome screen layout has been updated
- The Preferences dialog no longer crashes on Windows
- The packet list header menu has been added
- Statistics tree plugins are now supported
- The window icon is now displayed properly in the Windows taskbar
- A packet list an byte view selection bug has been fixed (Bug 10896)
- The RTP Streams dialog has been added
- The Protocol Hierarchy Statistics dialog has been added

The following features are new (or have been significantly updated) since version 1.99.0:

Qt port:
- You can now show and hide toolbars and major widgets using the View menu
- You can now set the time display format and precision
- The byte view widget is much faster, particularly when selecting large reassembled packets
- The byte view is explorable. Hovering over it highlights the corresponding field and shows a description in the status bar
- An Italian translation has been added
- The Summary dialog has been updated and renamed to Capture File Properties
- The VoIP Calls and SIP Flows dialogs have been added
- Support for HiDPI / Retina displays has been improved in the official packages
- DNS stats: + A new stats tree has been added to the Statistics menu. Now it is possible to collect stats such as qtype/qclass distribution, number of resource record per response section, and stats data (min, max, avg) for values such as query name length or DNS payload
- HPFEEDS stats: + A new stats tree has been added to the statistics menu. Now it is possible to collect stats per channel (messages count and payload size), and opcode distribution
- HTTP2 stats: + A new stats tree has been added to the statistics menu. Now it is possible to collect stats (type distribution)

The following features are new (or have been significantly updated) since version 1.12.0:
- The I/O Graph in the Gtk+ UI now supports an unlimited number of data points (up from 100k)
- TShark now resets its state when changing files in ring-buffer mode
- Expert Info severities can now be configured
- Wireshark now supports external capture interfaces. External capture interfaces can be anything from a tcpdump-over-ssh pipe to a program that captures from proprietary or non-standard hardware. This functionality is not available in the Qt UI yet

Qt port:
- The Qt UI is now the default (program name is wireshark)
- A Polish translation has been added
- The Interfaces dialog has been added
- The interface list is now updated when interfaces appear or disappear
- The Conversations and Endpoints dialogs have been added
- A Japanese translation has been added
- It is now possible to manage remote capture interfaces
- Windows: taskbar progress support has been added
- Most toolbar actions are in place and work
- More command line options are now supported

New File Format Decoding Support:
- Wireshark is able to display the format of some types of files (rather than displaying the contents of those files). This is useful when you’re curious about, or debugging, a file and its format. To open a capture file (such as PCAP) in this mode specify "MIME Files Format" as the file’s format in the Open File dialog

New files that Wireshark can open in this mode include:
BTSNOOP, PCAP, and PCAPNG

New Protocol Support:
- Aeron, AllJoyn Reliable Datagram Protocol, Android Debug Bridge, Android Debug Bridge Service, Android Logcat text, Apache Tribes Heartbeat, APT-X Codec, B.A.T.M.A.N. GW, B.A.T.M.A.N. Vis, BGP Monitoring Prototol (BMP), Bluetooth Broadcom HCI, Bluetooth GATT Attributes (many), Bluetooth OBEX Applications (many), BSSAP2, C15 Call History Protocol (C15ch) and others, Celerra VNX, Ceph, Chargen, Classical IP, Concise Binary Object Representation (CBOR) (RFC 7049), Corosync Totem Single Ring Protocol, Corosync Totemnet, Couchbase, CP “Cooper” 2179, CSN.1, dCache, DJI UAV Drone Control Protocol, Dynamic Source Routing (RFC 4728), Elasticsearch, ETSI Card Application Toolkit - Transport Protocol, eXpressive Internet Protocol (XIP), GDB Remote Serial Protocol, Generic Network Virtualization Encapsulation (Geneve), Geospatial and Imagery Access Service (GIAS), Gias Dissector Using GIOP API, GPRS Tunneling Protocol Prim, GVSP GigE Vision ™ Streaming Protocol, H.225 RAS, Harman HiQnet, HCrt, Hotline Command-Response Transaction Protocol, IEEE 802.11 radio information, IP Detail Record (IPDR), IPMI Trace, iSER, KNXnetIP, Link Aggregation Control Protocol, Link Aggregation Marker Protocol, Link Layer Topology Discovery, Link-local Multicast Name Resolution, LISP TCP Control Message, Locator/ID Separation Protocol (Reliable Transport), MACsec Key Agreement - EAPoL-MKA, MCPE (Minecraft Pocket Edition), Message Queuing Telemetry Transport For Sensor Networks (MQTT-SN), Minecraft Pocket Edition, MQ Telemetry Transport Protocol for Sensor Networks, Multicast Domain Name Service (mDNS), Neighborhood Watch Protocol (NWP), Network File System over Remote Direct Memory Access (NFSoRDMA), OAMPDU, OCFS2, OptoMMP, Organization Specific Slow Protocol (OSSP), Packet Cable Lawful Intercept (8 byte CCCID), Packet Cable Lawful Intercept (timestamp), Packet Cable Lawful Intercept (timestamp case ID), PacketCable MTA FQDN, Performance Co-Pilot Proxy, QNEX6 (QNET), RakNet games library, Remote Shared Virtual Disk (RSVD), Riemann, RPC over RDMA (RPCoRDMA), S7 Communication, Secure Socket Tunnel Protocol (SSTP), Shared Memory Communications - RDMA (SMCR), Stateless Transport Tunneling, Sysdig system call events, TCP based Robot Operating System protocol (TCPROS), Thrift, Time Division Multiplexing over Packet Network (TDMoP), Video Services over IP (VSIP), Windows Search Protocol (MS-WSP), XIP Serval, ZigBee ZCL (many), and ZVT Kassenschnittstelle

Updated Protocol Support:
- Too many protocols have been updated to list here

New and Updated Capture File Support:
- 3GPP TS 32.423 Trace, Android Logcat text files, Colasoft Capsa files, Netscaler 3.5, and Symbian OS BTSNOOP File Format
- Additionally, Wireshark now supports nanosecond timestamp resolution in PCAP-NG files

New and Updated Capture Interfaces support:
- Androiddump support now provides interfaces to capture (Logcat, Bluetooth and WiFi) from connected Android devices

Major API Changes:

The libwireshark API has undergone some major changes:
- The emem framework (including all ep_ and se_ memory allocation routines) has been completely removed in favour of wmem which is now fully mature
- The (long-since-broken) Python bindings support has been removed. If you want to write dissectors in something other than C, use Lua
- Plugins can now create GUI menu items
- Heuristic dissectors can now be globally enabled/disabled so heur_dissector_add() has a few more parameters to make that possible
- proto_tree_add_text has been removed
- tvb_length() has been removed in favor of tvb_reported_length() and tvb_captured_length()
- The API for ONC RPC-based dissectors has changed significantly: the procedure dissectors no longer take an offset, void-argument procedures now need to be declared with a function (use dissect_rpc_void()), and rpc_init_prog() now handles procedure registration too (it takes additional arguments to handle this; rpc_init_proc_table() was removed)