SNIFFIT(8)
π SNIFFIT β ok bestie, section 8, let's GO π
So this is the manual page for sniffit, and it lives in section 8 of the system manager's manual. Pull up a chair, grab a boba, we're doing networking forensics together π«Ά
β¨ NAME β¨
sniffit β packet sniffer and monitoring tool
Yeah. It sniffs packets. It monitors. It's that girl. π
πΈ 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 ]
Okay so that's a lot of brackets and I know it's giving "math homework" energy but it's literally just flags, I promise. We'll go through every single one below, no skips, no cap π
π¦ DESCRIPTION π¦
sniffit is a packet sniffer for TCP/UDP/ICMP packets. Not only that, but it will hand you very detailed technical info on those packets β we're talking SEQ, ACK, TTL, Window, the whole ~aesthetic~ β plus the actual packet contents in different formats (hex, plain text, you name it, she serves it).
By default sniffit can handle ethernet and PPP devices, but it can easily be forced into using other devices too. (Go read the README.FIRST and sn_config.h files on this subject, bestie, they're important!)
The sniffer can easily be configured so it will 'filter' the incoming packets β which makes your sniffing results so much easier to study. The config file (see sniffit(5)) lets you be extremely specific about which packets get processed. Very picky. Very demure. β¨
sniffit also has an interactive mode for active monitoring, and it can be used for continuous monitoring on different levels too. Multi-talented fr fr π
π NOTE π
This man page is supposed to be a reference manual. So please read README.FIRST first, and use this one only for better understanding, or for a quick check on how to use sniffit.
Like, genuinely read README.FIRST first. This page is the cheat sheet, not the tutorial, iykyk π
π OPTIONS π
-vβ Shows the version ofsniffityou're running and then exits. It overrides all the other options, she's the main character, she does not share the spotlight.-t Target-IPβ Only process packets TO Target-IP. If Target-IP is in dot-nr notation,Β΄x'is allowed as a wildcard. (e.g.-t 157.193.x,-t x, ...) (NOT compatible with:-s-i-I-c-v-L)-s Source-IPβ Same vibe as-t, except it only processes packets FROM Source-IP. (NOT compatible with:-t-i-I-c-v-L)-bβΒ΄both'mode: together with-sor-t, it only processes packets FROM/TO the IP specified by-sor-t. (NOT compatible with:-t-i-I-c-v-L)-c config-fileβ Use config-file for the packet filtering. This lets you be very specific about which packets get processed (seesniffit(5)for details on the format). (NOT compatible with:-t-s-i-I-v-L)-iβ Launches the ncurses interface for active monitoring (the 'interactive mode'). (NOT available if you compiled without INTERACTIVE support β seesn_config.handREADME.FIRST) (one of the options-t-s-i-I-cis required) (NOT compatible with:-t-s-c-v-L)-Iβ Same as-i, but gives you more information. More info, more chaos, more fun π«Ά (one of the options-t-s-i-I-cis required) (NOT compatible with:-t-s-c-v-L)-R <file>β Record all traffic into <file>. That file can then be fed to Sniffit with the-roption. (Needs a selection parameter like-c-t-s) (NOT compatible with-i-I-v-L-r)-r <file>β This option feeds the recorded <file> tosniffit. It requires the-Foption with the correct device. Say you log a file on a machine witheth0β when you feed that logged file back tosniffit, you'll need to add-F eth0or-F ethto the command line. It also doesn't need much explanation that using-ior-Itogether with-rmakes no sense (at this moment). (requires-F, NOT compatible with-R-i-I)-nβ Turn off IP checksum checking. This can show you bogus packets. (mind you, ARP, RARP and other non-IP packets will show up bogus too) (compatible with ALL options)-Nβ Don't perform any of the built-in Sniffit functions. Useful for only running a Plugin. (compatible with ALL options)-xβ Prints extended info on TCP packets to stdout (SEQ, ACK, Flags, etc...). Interesting when you're 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:-iI-v)-dβΒ΄dump mode': shows the packets on the screen (stdout) instead of logging into files (which is the default). Data is printed in bytes (hex). (NOT compatible with:-iI-v-L)-aβΒ΄dump mode', same as-dbut outputs ASCII. Non printable chars are replaced by.. (-dand-amix without any problem) (NOT compatible with:-i-I-v-L)-P protoβ Specify the protocols that should be processed (default isTCP). Possible options currently are:IP,TCP,ICMP,UDP. They can be combined.IP,ICMPandUDPinfo is dumped to stdout.IPgives ADDITIONAL info on the IP wrapping around other packets β it is not needed to specifyIPfor TCP packet logging.IPandICMPpackets 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.0means all ports, and the default is0(all). (NOT compatible with:-c-i-I-v-L)-l sniflenβ Amount of data to log (default300bytes) in 'normal mode'. The first sniflen bytes of every connection are logged. Length0means everything is logged. (look out with diskspace!) (NOT compatible with:-i-I-v-L)-F snifdeviceβ Forcesniffitto use a certain network device. snifdevice can be found withifconfig(seeifconfig(8)).sniffitsupports ethernet and PPP by default. ReadREADME.FIRSTfor info on forcing the use of other devices. (compatible with ALL options)-D ttyβ All logging output will be sent to that device. (ONLY works with-iand-I)-M pluginβ Activate Plugin nr. Plugin. For a list of all plugins compiled into your version, just typesniffit Β΄. Read all about Plugins in thePLUGIN-HOWTO(READ IT!) (NOT compatible with:-i-I-v)-L logparamβ Usesniffitas a monitoring tool and enable different logging modes (logparam). The file for logging can be specified in the config file (seesniffit(5)) but issniffit.logby 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 named 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 is the receiving host (port o).
π DUMP MODE (-d and/or -a) π
Output is dumped to stdout, and the packet contents are shown in their unwrapped form (that's the complete IP packet, bestie).
π§ INTERACTIVE MODE (-i or -I) π§
Keys available in interactive mode:
UPor'k'β self explanatoryDOWNorj'β self explanatoryF1or'1'β Enter a host (enterallfor no mask) for packet filtering (host that sends the packets)F2or'2'β Enter a host (enterallfor no mask) for packet filtering. (host that receives the packets)F3or'3'β Enter a port (enter0for no mask) for packet filtering. (host that sends the packets)F4or'4'β Enter a port (enter0for no mask) for packet filtering. (host that receives the packets)F5or'5'β Start a programsniffit_key5with 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 assniffitwas STARTED FROM (not necessarily the pathsniffitis stored in). This function is useful for interactive connection killing or extra monitoring. A little shell script can always transform the arguments given and pass them on to other programs.F6or'6'β Same asF5or'5', but with programsniffit_key6F7or'7'β Same asF5or'5', but with programsniffit_key7F8or'8'β Same asF5or'5', but with programsniffit_key8ENTERβ a window will pop up and log the connection, or the connection output will be sent to a chosen device if you used the-Doption.'q'β When in logging mode, stop logging. Otherwise, quit.'n'β Toggle netstatistics. These are sampled at 3 secs, look in thesn_config.hfile to change this.'g'β Sniffit is now able to generate some traffic load. Currently this is an '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 many packets need 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 give you at least 2 SYN packets, etc...).normβ Same asraw, 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. (seetelnet(1))ftpβ Sniffit will try to catch login and passwords for this application. (seeftp(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>
Legend behavior honestly π
πΈ SEE ALSO πΈ
Okay that's the whole thing bestie, you're officially certified ππ
Go read README.FIRST, go read the PLUGIN-HOWTO, and go be careful with your diskspace (-l 0 logs everything, no cap π).
This page came to you from the System Manager's Manual β it's SNIFFIT(8), periodt. πβ¨π¦
π¦ where this page comes from
- arch rolling: sniffit 0.7-1 Β· BSD
- debian bookworm: sniffit 0.5-3 Β· BSD-3-Clause
- ubuntu jammy: sniffit 0.5-2 Β· BSD-3-Clause
- ubuntu noble: sniffit 0.5-3ubuntu1 Β· BSD-3-Clause
- ubuntu questing: sniffit 0.7-1
- ubuntu resolute: sniffit 0.7-1build1 Β· BSD-3-Clause
- ubuntu stonking: sniffit 0.7-1build1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms