tcpick(8) | System Manager's Manual | tcpick(8) |
tcpick - tcp stream sniffer and connection tracker
tcpick [ -a ] [ -n ] [ -C ]
[ -e count ]
[ -i interface | -r file ]
[ -X timeout ]
[ -D ] [ -F1 | -F2 ]
[ -yH | -yP | -yR | -yU | -yx | -yX
]
[ -bH | -bP | -bR | -bU | -bx | -bX
]
[ -wH[ub] | -wP[ub] | -wR[ub] | -wU[ub] ]
[ -v [ verbosity ]] [ -S ] [ -h ]
[ --separator ]
[ -T | -Tf [ number ]]
[ -E | -Ef [ number ]]
[ -Pc | -Ps ]
[ "filter" ]
[ --help ] [ --version ]
tcpick is a textmode sniffer libpcap-based that can track tcp streams and saves the data captured in different files, each for every connection, or displays them in the terminal in different formats (hexdump, printable characters, raw...) Useful for picking files in a passive way. It is useful to keep track of what users of a network are doing, and is usable with textmode tools like grep, sed, awk. Happy data hunting :-)
These options are prefixed by -y and are useful to display in various ways the content of the packet sniffed (the data, called payload), once it arrives at the listening interface. In that way the tcp duplicates will be not discarded and the packets will not be reordered, but displayed "as is". If you want a fully acknowledged stream, see the -w and -b set of options.
The prefix for these options is -w. The TCP stream that has
been sniffed with these options will be written to file named:
client_<ip_client>_<ip_server>_<port_server>.tcpick
and
server_<ip_client>_<ip_server>_<port_server>.tcpick
With the u flag of the -w option (i.e. -wRu) both client
and server data will be written to a unique file named in that way:
<ip_client>_<ip_server>_<port_server>.tcpick
If you use the additional flag b of the -w option (i.e.
-wPub), in the file will be written this banner:
[client|server] offset before:offset after (length of rebuilded segment)
to distinguish between client and server data.
The flow is rebuilded, reordered and the duplicates are dropped. In that way
it is possible to sniff entire files transmitted via ftp without data
corruption (you can see this with md5sum). If no argument is given to
-w the data will be written like -wR You can decide to write
only client or server data by setting the flag
C (output only client data) and S (output only server data) to
the -w set.
The prefix for these options is -b. This set of options is very useful if you want to redirect the sniffed flow to anoter program with a pipe, and there should be no data corruption. Of course the most useful is -bR to show the data as they are (raw). A very useful feature is the flag C (output only client data) and S (output only server data). I.e.: -bRC will display only the data from the client in raw mode; in that way you can put them in a file with a pipe redirection.
The sub-options are quite the same of the -y set, so you have:
Address: <tcpick-project[a]lists.sourceforge.net>
Archive:
http://sourceforge.net/mailarchive/forum.php?forum=tcpick-project
Subscribe: http://lists.sourceforge.net/lists/listinfo/tcpick-project
If you have new ideas, patches, feature requests or simply need help, don't
wait! I will be grateful if you send a message to the mailing list (even if
you want to say what you liked most on tcpick).
The tcpick website is at http://tcpick.sf.net.
You can find the project page here:
http://sourceforge.net/projects/tcpick kindly hosted by the
sourceforge team.
Please check AUTHORS file.
Tcpick is an experimental software, and maybe some bugs are
described in the KNOWN-BUGS file.
On some versions of MacOSX Segmentation Fault happens and connections aren't
tracked properly.
If you find any other bug, please write to the tcpick mailing list.
Other nice packet/data sniffers:
tcpdump, ngrep, tcptrack, ettercap, ethereal, snort
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at you option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.