Provided by:
sniffit_0.3.7.beta-11_i386 
NAME
sniffit - packet sniffer and monitoring tool
SYNOPSIS
sniffit [-xdabvnN] [-P proto ] [-A char ] [-p port ] [(-r|-R)
recordfile ] [-l sniflen ] [-L logparam ] [-F snifdevice ] [-D tty ]
[-M plugin ] [(-t Target-IP | -s Source-IP ) | (-i|-I) | -c config-file
]
DESCRIPTION
sniffit is a packet sniffer for TCP/UDP/ICMP packets. sniffit is able
to give you very detailed technical info on these packets (SEQ, ACK,
TTL, Window, ...) but also packet contents in different formats (hex or
plain text, ...).
sniffit can by default handle ethernet and PPP devices, but can easily
be forced into using other devices (read the README.FIRST and
sn_config.h files on this subject!)
The sniffer can easily be configured in order to βfilterβ the incomming
packets (to make the sniffing results easier to study). The config file
(see sniffit(5) ) allows you to be verry specific on the packets to be
processed.
sniffit also has an interactive mode for active monitoring, and can
also be used for continuous monitoring on different levels.
NOTE
This man page is supposed to be a reference manual. So please read
README.FIRST first, and use this only for better understanding or for a
quick check on the use of sniffit
OPTIONS
-v Shows the version of sniffit you are running and exits
(overrides all)
-t Target-IP
Only process packets TO Target-IP. If Target-IP is in dot-nr
notation, (NOT compatible with: β-sβ β-iβ β-Iβ β-cβ β-vβ β-Lβ)
-s Source-IP
Similar to β-tβ, only process packets FROM Source-IP. (NOT
compatible with: β-tβ β-iβ β-Iβ β-cβ β-vβ β-Lβ)
-b specified by β-sβ or β-tβ (NOT compatible with: β-tβ β-iβ β-Iβ
β-cβ β-vβ β-Lβ)
-c config-file
Use config-file for the packet filtering. This allows you to be
very specific on the packets to be processed (see sniffit(5) for
details on the format). (NOT compatible with: β-tβ β-sβ β-iβ
β-Iβ β-vβ β-Lβ)
-i Launch the ncurses interface for active monitoring (βinteractive
modeβ). (NOT available if you compiled without INTERACTIVE
support see sn_config.h and README.FIRST ) (one of the options
β-tβ β-sβ β-iβ β-Iβ β-cβ is required) (NOT compatible with: β-tβ
β-sβ β-cβ β-vβ β-Lβ)
-I Same as β-iβ, but gives you more information. (one of the
options β-tβ β-sβ β-iβ β-Iβ β-cβ is required) (NOT compatible
with: β-tβ β-sβ β-cβ β-vβ β-Lβ)
-R <file>
Record all traffic in <file> (Needs a selection parameter like
β-cβ β-tβ β-sβ) (NOT compatible with β-iβ β-Iβ β-vβ β-Lβ β-rβ)
-r <file>
This option feeds the recorded <file> to sniffit. It requires
the β-Fβ option with the correct device. Suppose you log a file
on a machine with βeth0β. When feeding the logged file to
sniffit , you will need to add β-F eth0β or β-F ethβ to the
command line. It doesnβt need much explanation that using β-iβ
or β-Iβ in combination with β-rβ makes no sense (at this
moment). (requires β-Fβ, NOT compatible with β-Rβ β-iβ β-Iβ)
-n Turn of IP checksum checking. This can show you bogus packets.
(mind you ARP, RARP, other non-IP packets will show up bogus
too) (compatible with ALL options)
-N Donβt perform any of the build in Sniffit functions. Usefull for
only running a Plugin. (compatible with ALL options)
-x Prints extended info on TCP packets to stdout (SEQ, ACK, Flags,
etc...) Interesting when tracing spoofs, packet loss and other
real net debugging/checking tasks. (if you want to log this,
pipe stdout to a file) (NOT compatible with: β-iβ βIβ β-vβ)
-d into files (default). Data is printed in bytes (hex). (NOT
compatible with: β-iβ βIβ β-vβ β-Lβ)
-a replaced by β.β. (β-dβ and β-aβ mix without any problem) (NOT
compatible with: β-iβ β-Iβ β-vβ β-Lβ)
-P proto
Specify the protocols that should be processed (default TCP).
Possible options currently are: IP, TCP, ICMP, UDP. They can be
combined. IP, ICMP, UDP info is dumped to stdout. IP gives
ADDITIONAL info on the IPwrapping around other packets, it is
not needed to specify IP for TCP packet logging. IP, ICMP
packets are not filtered (UDP packets are as of 0.3.4). (NOT
compatible with: β-iβ β-Iβ β-vβ β-Lβ)
-A char
When in βnormal modeβ (not β-dβ,β-aβ,β-iβ,β-Iβ,β-Lβ), all non-
printable chars will be replaced by char (NOT compatible with:
β-aβ β-dβ β-iβ β-Iβ β-vβ β-Lβ)
-p port
Only checks packets going TO (!!) port port , 0 means all
ports, default is 0 (all). (NOT compatible with: β-cβ β-iβ β-Iβ
β-vβ β-Lβ)
-l sniflen
Ammount of data to log (default 300 bytes) in βnormal modeβ. The
first sniflen bytes of every connection are logged. Length 0
logs means everything. (look out with diskspace!) (NOT
compatible with: β-iβ β-Iβ β-vβ β-Lβ)
-F snifdevice
Force sniffit to use a certain network device. snifdevice can
be found with ifconfig (see ifconfig(8) ). sniffit supports
ethernet and PPP by default. Read README.FIRST for info on
forcing the use of other devices. (compatible with ALL options)
-D tty All logging output will be send to that device. (ONLY works
with β-iβ and β-Iβ)
-M plugin
Activate Plugin nr. Plugin , for a list on all plugins compiled
in your version, just type β sniffit (NOT compatible with: β-iβ
β-Iβ β-vβ)
-L logparam
Use sniffit as a monitoring tool and enable different logging
modes ( logparam ) The File for logging can be specified in the
config file (see sniffit(5) ) but is sniffit.log by default.
Different logparam can be combined. (ONLY works with β-cβ)
NORMAL MODE
A bunch of sniflen initial bytes (default 300) of each connection is
logged into a file x.x.x.x.p-y.y.y.y.o where βx.x.x.xβ is the sending
host (port βpβ) and βy.y.y.yβ the receiving host (port βoβ).
DUMP MODE (ββ-dββ and/or ββ-aββ)
Output is dumped to stdout, the packet contents is shown in itβs
unwrapped form (the complete IP packet).
INTERACTIVE MODE (ββ-iββ or ββ-Iββ)
Keys available in interactive mode:
βUP or βkβ
self explanatory
DOWN or jβ
self explanatory
F1 or β1β
Enter a host (enter βallβ for no mask) for packet filtering
(host that sends the packets)
F2 or β2β
Enter a host (enter βallβ for no mask) for packet filtering.
(host that receives the packets)
F3 or β3β
Enter a port (enter β0β for no mask) for packet filtering. (host
that sends the packets)
F4 or β4β
Enter a port (enter β0β for no mask) for packet filtering. (host
that receives the packets)
F5 or β5β
Start a program βsniffit_key5β with arguments <from IP> <from
port> <to IP> <to port> If the program doesnβt exist, nothing is
done. Sniffit should be in the same path as sniffit was STARTED
FROM (not necessarely the path sniffit is stored in) This
function is usefull for interactive connection killing or extra
monitoring. A little shell script can always transform the
arguments given and pass them on to other programs.
F6 or β6β
Same as F5 or β5β, but with program βsniffit_key6β
F7 or β7β
Same as F5 or β5β, but with program βsniffit_key7β
F8 or β8β
Same as F5 or β5β, but with program βsniffit_key8β
ENTER a window will pop up and log the connection, or the connection
output will be send at a chosen device if you used the β-Dβ
option.
βqβ When in logging mode, stop logging. Otherwise, quit.
βnβ Toggle netstatistics. These are sampled at 3 secs, look in the
sn_config.h file to change this.
βgβ Sniffit is now able to generate some trafic load. Currently this
is a βunderdevellopedβ feature with very few options, but it
will be expanded a lot. Currently only UDP packets are
generated. When pressing βgβ you will be asked the source/dest
IP/port and how much packets are needed to be transmitted.
Packets contain the line: "This Packet was fired with Sniffit!
βrβ Reset.. clears all current connections from memory and restarts.
LOGGING MODE (ββ-Lββ)
Output is saved to sniffit.log , unless you have specified some other
name in the config file (see sniffit(5) ).
raw Log all SYN, FIN, RST packets. This will give you an overview of
all network (TCP) trafic in a βRAWβ way (a connection starting
could gives you at least 2 SYN packets, etc...).
norm Same as raw, but a bit more intelligent. Unless packets are
transmitted multiple times because of packet loss, you will only
get 1 notice of a connection starting or ending. (the packet id
will give you the host that initiated the connection first)
telnet Sniffit will try to catch login and passwords for this
application. (see telnet(1) )
ftp Sniffit will try to catch login and passwords for this
application. (see ftp(1) )
mail Sniffit will try to identify all mail that was logged.
IP ICMP UDP LOGGING
Information on these packets is dumped to stdout. Packet Filtering
options only refer to TCP and UDP packets. The contents of UDP packets
is only shown when enabling β-aβ or β-dβ.
AUTHOR
Brecht Claerhout <coder@reptile.rug.ac.be>
SEE ALSO
sniffit(5)
SNIFFIT(8)