Sponsored Content
Full Discussion: TCPdump
Special Forums IP Networking TCPdump Post 302951385 by gwillie on Wednesday 5th of August 2015 09:56:01 PM
Old 08-05-2015
In order to know a packet is not for it, it reads the destination mac address in the frame. You are in promiscuous mode so interface will accept all frames regardless of destination, reconstitute to a packet and send to cpu
 

9 More Discussions You Might Find Interesting

1. Programming

How To Use tcpdump

I have two net-card. one is 172.16.24.99(ENG) ,another is 172.16.25.99(ENG-B). Both masks is 255.255.255.0. I will monitor data on the tcp port 8055 in ENG, How do I set option of tcpdump command (2 Replies)
Discussion started by: chenhao_no1
2 Replies

2. UNIX for Dummies Questions & Answers

tcpdump

does anybody know what the -d -dd and -ddd options are used for ? thanks (2 Replies)
Discussion started by: ant04
2 Replies

3. IP Networking

tcpdump question

Hi, I got the following question regarding tcpdump and I would appreciate your help/feedback: --Scenario I am instructed to capture the network traffic by getting the tcpdump data/files of our network for every hour. --Problem Some of the connections are still open when the capture is done... (1 Reply)
Discussion started by: jinsunnyvale
1 Replies

4. Cybersecurity

i would like to know about tcpdump

i would like to know about tcpdump i would like to use tcpdump to get information about these - Date - time - source hostname - source mac address - source ip address - destination ip address - see outbound only then i use command like this tcpdump -i le0 -n -q -tttt -e src net... (0 Replies)
Discussion started by: chamnanpol
0 Replies

5. IP Networking

i would like to know about tcpdump

i would like to know about tcpdump i would like to use tcpdump to get information about these - Date - time - source hostname - source mac address - source ip address - destination ip address - see outbound only then i use command like this tcpdump -i le0 -n -q -tttt -e src net... (2 Replies)
Discussion started by: chamnanpol
2 Replies

6. Linux

Capturing TCPDUMP

Hi, I want to capture TCPDUMP of traffic, I tried doing this but did not find success..can anyone plz correct it. # tcpdump -s0 -vv -w /home/osuresh/test_tcp_dump host 10.12.10.22 && port 161 bash: tcpdump: command not found # tcpdump -s0 -vv -w /home/osuresh/test_tcp_dump host... (5 Replies)
Discussion started by: sureshcisco
5 Replies

7. UNIX for Dummies Questions & Answers

tcpdump -i any does not work

Hi Everyone, anyone face "tcpdump -i any" does not work? i mean if i use -i eth0, can capture eth0, or use -i eth1 also can. but then tcpdump -i any, seems cannot capture packets. :confused: please advice, thanks (2 Replies)
Discussion started by: jimmy_y
2 Replies

8. Shell Programming and Scripting

TCPdump script

I'm new to the Unix/Linux world. I have taken classes and played with a few simple scripts but never had a real world application. Here is my problem. What I need to do is every 15min between 8am and 5pm, run tcpdump -s 2000 -w flowroute-0000.pcap where the "0000" is the current time. ... (4 Replies)
Discussion started by: Nasasdge
4 Replies

9. Debian

Tcpdump Help !

Hi. Need Help with TcpDump Trying to sniff associatio-request with tcpdump but when i run this tcpdump -i eth0 wlan subtype assoc-req i get this error can anyone help me with this error ? Thanks alot !!:) (1 Reply)
Discussion started by: SoulZB
1 Replies
DNET(8) 						    BSD System Manager's Manual 						   DNET(8)

NAME
dnet -- dumb networking library test program SYNOPSIS
dnet command args [...] DESCRIPTION
dnet is a simple test program for the dnet(3) library. It can be used to compose and transmit network datagrams as a Unix-style filter (e.g. reading from or writing to files and pipes) or modify the local system network configuration (including the ARP cache, firewall ruleset, net- work interfaces, and routing table). Payload generation commands addr address [...] Convert the address (specified as a hostname, IP address, or MAC address) into its binary representation on standard output. hex string [...] Convert the C-style escaped string (shellcode, for instance) into its binary representation on standard output. rand len Write len random bytes to standard output. Packet encapsulation commands eth [type type] [src mac] [dst mac] Prepend the data read from standard input with an Ethernet header on standard output. The Ethernet type may be specified as 'arp', 'ip', or as a hex, octal, or decimal number. arp [op op] [sha mac] [spa host] [tha mac] [tpa host] Prepend the data read from standard input with an ARP header on standard output. The ARP op may be specified as 'req', 'rep', 'revreq', 'revrep', or as a hex, octal, or decimal number. ip [tos num] [id num] [off offset] [ttl num] [proto protocol] [src host] [dst dst] Prepend the data read from standard input with an IP header on standard output. The fragmentation offset may be specified as a decimal number (optionally concatenated with '+' to indicate more fragments) or as a hex number. The protocol may be specified by name, or as a hex, octal, or decimal number. icmp [type num] [code num] Prepend the data read from standard input with an ICMP header on standard output. tcp [sport port] [dport port] [flags flags] [seq num] [ack num] [win num] [urp num] Prepend the data read from standard input with a TCP header on standard output. A port may be specified by name or hex, octal, or deci- mal number. The TCP flags may be specified as some combination of the characters in the set 'SAFRPU' or as a hex number. udp [sport port] [dport port] Prepend the data read from standard input with a UDP header on standard output. A port may be specified by name or hex, octal, or deci- mal number. Packet transmission commands send [device] Read a packet from standard input and send it over the network. If no device is specified, the packet is assumed to be an IP datagram and routed to its destination. Otherwise, the packet is assumed to be an Ethernet frame and is transmitted on the specified interface. Kernel interface commands arp show Display the kernel ARP cache. arp get host Display the kernel ARP entry for host. arp add host mac Add an ARP entry mapping the mac address for host. arp delete host Delete the ARP entry for host. fw show Display the kernel firewall ruleset. fw add|delete action direction device protocol src[:port[-max]] dst[:port[-max]] [type[/code]] Add a rule to or delete a rule from the active firewall ruleset. The action must be either 'allow' or 'block'. The direction must be either 'in' or 'out'. The device may specify an interface name, or 'any'. The protocol may be specified by name, or as a decimal num- ber. For TCP and UDP protocols, a port (or range, if specified with a max value) may be specified in decimal and appended to the source and/or destination address. For ICMP, a type (and optional code) may be specified in decimal. intf show Display the configuration of all network interfaces. intf get device Display the configuration for the interface specified by device. intf set device [alias host] [dst host] [inet host] [link mac] [up|down] [arp|noarp] Configure the interface specified by device. route show Display the kernel routing table. route get dst Display the route for the destination dst, specified as a hostname, IP address, or network prefix in CIDR notation. route add dst gw Add a route for the destination dst through the gateway gw. route delete dst Delete the route for the destination dst. EXAMPLES
Send a UDP datagram containing random shellcode: dnet hex "xebx1fx5ex89x76x08x31xc0x88x46x07x89" "x46x0cxb0x0bx89xf3x8dx4ex08x8dx56x0cxcdx80" "x31xdbx89xd8x40xcdx80xe8xdcxffxffxff/bin/sh" | dnet udp sport 555 dport 666 | dnet ip proto udp src 1.2.3.4 dst 5.6.7.8 | dnet send Save an ARP request in a file and send it twice: dnet arp op req sha 0:d:e:a:d:0 spa 10.0.0.3 tpa 10.0.0.4 | dnet eth type arp src 0:d:e:a:d:0 dst ff:ff:ff:ff:ff:ff > arp.pkt dnet send fxp0 < arp.pkt dnet send fxp0 < arp.pkt Send a fragmented ping packet: # Create ping packet with IP header, to set ICMP checksum echo "monkey monkey monkey monkey" | dnet icmp type 8 code 0 | dnet ip proto icmp src 1.2.3.4 dst 5.6.7.8 > ping.pkt # Chop off IP header dd if=ping.pkt of=ping.data bs=20 skip=1 # Fragment IP payload split -b 24 ping.data p. # Send fragments dnet ip id 1 off 0+ proto icmp src 1.2.3.4 dst 5.6.7.8 < p.aa | dnet send dnet ip id 1 off 24 proto icmp src 1.2.3.4 dst 5.6.7.8 < p.ab | dnet send SEE ALSO
dnet(3) AUTHORS
Dug Song <dugsong@monkey.org> BSD
October 17, 2001 BSD
All times are GMT -4. The time now is 10:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy