Some
random guy was trying to intercept traffic right in the middle of a connection.
Then he wondered how he could store his freshly hunted packets. Of course I
know something appropriate!
But little did he know...
-- khorben <khorben@uberwall.org>
They wonder. Why the f...?
UW_sslmitm!
An uniform library interface to the packet capture systems including the Berkeley Packet Filter (BSD and SunOS), Data Link Provider Interface (Solaris and SYSV), Stanford Enetfilter (IBM RT/4.3BSD), Network Interface Tap (SunOS 3), Streams Network Interface Tap (SunOS 4), Packet Filter, and Snoop (IRIX)
Federal computer system and is the property of the United States Government
| Version | Date | Matter |
|---|---|---|
| 0.9.4 | 02/10/2005 | latest to date |
| 0.6 | 09/01/2001 | portable file format |
| 0.5 | 10/06/2000 | released on tcpdump.org |
| 0.4 | 25/07/1998 | last from LBL |
| 0.3 | 30/11/1996 | Linux support |
| 0.0 | 20/06/1994 | project started |
He opens the archive. Let's have a look at this.
$ wget http://www.tcpdump.org/release/libpcap-0.9.3.tar.gz $ tar -xzf libpcap-0.9.3.tar.gz $ "$EDITOR" libpcap-0.9.3/README
$ ldd /usr/{bin,sbin}/* | grep pcap | wc -l
26


Not possible for real time analysis...
When he enters. He gets stuck. He's debating. Gah,
this hurts real bad!
. And finally...
$ find pcap -name '*.c' | wc -l 41
Note well: this interface is new and is likely to change.
Captures are possible:
Note that the current file formats supported by libpcap are not the only formats that will ever be used. At some point, we will probably implement a new capture file format.
{
bpf_u_int32 magic = TCPDUMP_MAGIC;
u_short version_major = PCAP_VERSION_MAJOR;
u_short version_minor = PCAP_VERSION_MINOR;
bpf_int32 thiszone; /* gmt to local
correction */
bpf_u_int32 sigfigs; /* accuracy of
timestamps */
bpf_u_int32 snaplen; /* max length saved
portion of each pkt */
bpf_u_int32 linktype = LINKTYPE_RAW;
}
{
struct timeval ts; /* timestamp */
bpf_u_int32 caplen; /* length of portion */
bpf_u_int32 len; /* length this packet */
}
Where he asked. This can certainly be improved! But
how?
http://www.winpcap.org/ntar/draft/PCAP-DumpFileFormat.html
Shipped in libpcap 0.9.3
Ideas for the future:
Thank you pcap hackers.
Thank you too. Any questions?