Linux Grab Command (learning) __linux

Source: Internet
Author: User
Tcpdump Grab Package The command parameter to save to the file is-W Xxx.cap

Grab Eth1 's bag.
Tcpdump-i eth1-w/tmp/xxx.cap

Grab 192.168.1.123 's bag.
Tcpdump-i eth1 host 192.168.1.123-w/tmp/xxx.cap

Grab 192.168.1.123 's 80-port package.
Tcpdump-i eth1 host 192.168.1.123 and Port 80-w/tmp/xxx.cap

Grab 192.168.1.123 's ICMP packets.
Tcpdump-i eth1 host 192.168.1.123 and Icmp-w/tmp/xxx.cap

Grab 192.168.1.123 80 ports and 110 and 25 other ports on the package
Tcpdump-i eth1 host 192.168.1.123 and! The Port and! Port and! Port 110-w/tmp/xxx.cap

Grab a VLAN 1 package
Tcpdump-i eth1 port and VLAN 1-w/tmp/xxx.cap

Catch PPPoE's password
Tcpdump-i eth1 pppoes-w/tmp/xxx.cap



100m size split save file, more than 100m open another file-C 100m

Grab 10,000 packages and exit-C 10000


Background Grab package, console exit will not affect:
Nohup tcpdump-i eth1 Port 110-w/tmp/xxx.cap &

The captured files can be opened directly with ethereal or Wireshark. Wireshark is the new version of the ethereal, the program changed its name

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.