Skip to content

intr-cx/snuif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snuif

Snuif (Dutch for sniff) is a very simple packet sniffer for Linux, meant as a demonstration of my understanding and competence in using the C programming language.

Snuif uses simple Unix sockets and doesn't make use of libpcap. Any advanced filtering isn't possible. Instead, Snuif outputs one packet per line, making it able to be parsed with Awk or Sed or whatever.

Build

Enter the repository's root directory and run make. The resulting binary can be found in the bin folder.

Dependencies

  • TCC, but GCC works fine too.

Usage

Without any arguments, Snuif will print to standard output.

snuif

One may supply a file path as argument, to which Snuif will then print its output.

snuif [file]

License

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 3 of the License, or (at your 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, see <https://www.gnu.org/licenses/>.

About

Dead simple Linux packet sniffer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published