请输入您要查询的百科知识:

 

词条 Tcpdump
释义

  1. History

  2. Common uses

  3. Privileges required

  4. See also

  5. References

  6. External links

{{lowercase|title=tcpdump}}{{refimprove|date=September 2010}}{{Infobox software
|name = tcpdump
|screenshot =
|caption = tcpdump console output
|developer = The Tcpdump team
|repo = {{github|the-tcpdump-group/tcpdump}}
|programming language = C (programming language)
|genre = Packet analyzer
|license = BSD license[1]
|website = {{URL|https://www.tcpdump.org/}}
|latest release version = 4.9.2
|latest release date = {{release date and age|2017|09|03}}[2]
|operating system = Linux, Solaris, FreeBSD, NetBSD, OpenBSD, DragonFly BSD, macOS, Android, and additional *NIX systems, Windows
}}

tcpdump is a common packet analyzer that runs under the command line. It allows the user to display TCP/IP and other packets being transmitted or received over a network to which the computer is attached.[3] Distributed under the BSD license,[4] tcpdump is free software.

Tcpdump works on most Unix-like operating systems: Linux, Solaris, FreeBSD, DragonFly BSD, NetBSD, OpenBSD, OpenWrt, macOS, HP-UX 11i, and AIX. In those systems, tcpdump uses the libpcap library to capture packets. The port of tcpdump for Windows is called WinDump; it uses WinPcap, the Windows port of libpcap.

History

tcpdump was originally written in 1988 by Van Jacobson, Sally Floyd, Vern Paxson and Steven McCanne who were, at the time, working in the Lawrence Berkeley Laboratory Network Research Group[5]. By the late 1990s there were numerous versions of tcpdump distributed as part of various operating systems, and numerous patches that were not well coordinated. Michael Richardson (mcr) and Bill Fenner created [https://www.tcpdump.org/ www.tcpdump.org] in 1999.

Common uses

tcpdump prints the contents of network packets. It can read packets from a network interface card or from a previously created saved packet file. tcpdump can write packets to standard output or a file.

It is also possible to use tcpdump for the specific purpose of intercepting and displaying the communications of another user or computer. A user with the necessary privileges on a system acting as a router or gateway through which unencrypted traffic such as Telnet or HTTP passes can use tcpdump to view login IDs, passwords, the URLs and content of websites being viewed, or any other unencrypted information.

The user may optionally apply a BPF-based filter to limit the number of packets seen by tcpdump; this renders the output more usable on networks with a high volume of traffic.

Example of available capture interfaces on a Linux system:

$ tcpdump -D1.eth0 [Up, Running]2.any (Pseudo-device that captures on all interfaces) [Up, Running]3.lo [Up, Running, Loopback]4.bluetooth-monitor (Bluetooth Linux Monitor)5.nflog (Linux netfilter log (NFLOG) interface)6.nfqueue (Linux netfilter queue (NFQUEUE) interface)7.dbus-system (D-Bus system bus)8.dbus-session (D-Bus session bus)9.bluetooth0 (Bluetooth adapter number 0)10.eth1

Privileges required

In some Unix-like operating systems, a user must have superuser privileges to use tcpdump because the packet capturing mechanisms on those systems require elevated privileges. However, the -Z option may be used to drop privileges to a specific unprivileged user after capturing has been set up. In other Unix-like operating systems, the packet capturing mechanism can be configured to allow non-privileged users to use it; if that is done, superuser privileges are not required.

See also

{{Portal|Free and open-source software}}
  • Tcptrace, a tool for analyzing the logs produced by tcpdump
  • EtherApe, a network mapping tool that relies on sniffing traffic
  • Ngrep, a tool that can match regular expressions within the network packet payloads
  • netsniff-ng, a free Linux networking toolkit
  • Wireshark, a GUI based alternative to tcpdump

References

1. ^{{cite web|url=https://www.tcpdump.org/license.html|title=tcpdump and libpcap license|publisher=The Tcpdump Group|accessdate=2012-04-13}}
2. ^{{cite web|url=https://www.tcpdump.org/#latest-release|title=tcpdump and libpcap latest release|publisher=The Tcpdump Group|accessdate=2017-09-18}}
3. ^{{cite web |url= https://ubunlog.com/tcpdump-descripcion-general-herramienta/ |title= Tcpdump, conoce el tráfico de una interfaz de red desde la terminal |access-date = 9 April 2018 |last= Amoedo |first= Damián |date= 8 April 2018 |website= Ubunlog |language = es |quote= Esta herramienta nos va a permitir ver información sobre el tráfico que entra y sale de una interfaz de red determinada. Se trata de una herramienta de diagnóstico que nos va a permitir ver la información de los paquetes. Esta información será de donde provienen los paquetes entrantes y hacia donde se dirigen los paquetes salientes, aportando algo de información adicional. Incluso podremos guardar el resultado en un archivo para echarle un vistazo en otro momento. |format= html |archive-url= https://web.archive.org/web/20180409123634/https://ubunlog.com/tcpdump-descripcion-general-herramienta/ |archive-date= 9 April 2018}}
4. ^{{cite web|url=https://github.com/the-tcpdump-group/tcpdump/blob/master/LICENSE|title=LICENSE file from source code (public GIT repository)}}
5. ^{{Cite web|url=https://sharkfest.wireshark.org/sharkfest.11/presentations/McCanne-Sharkfest'11_Keynote_Address.pdf|title=libpcap: An Architecture and Optimization Methodology for Packet Capture - Sharkfest 2011|last=McCanne|first=Steve|date=13 June 2011|website=SharkFest|access-date=6 August 2017}}

External links

  • [https://www.tcpdump.org/ Official site for tcpdump (and libpcap)]
  • Official site for WinDump
  • A tcpdump Tutorial and Primer
  • ngrep, a tcpdump-like tool
  • Portable version of tcpdump for Windows
  • Official site for tcpdump for Android devices
  • [https://web.archive.org/web/20090322060115/http://www.msamir.net/the-art-of-network-debugging-with-tcpdump/ Tutorial video for tcpdump in Linux]
  • WinDump Color Highlighting

6 : Network analyzers|Unix network-related software|Windows network-related software|Free software programmed in C|Cross-platform free software|Free network management software

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/22 12:51:59