By Michael Hofmann
Last update : 12/18/2020.
The options management and reception of packets are done in the main. Every protocol analysis is done in a file with its header.
There is a file (analyse_port.c) that deals with all application protocols, and enable to keep on the project in the futur .
Fct_utilitaires.c is a file that contains every useful functions for application protocols, such as translate with the ascii table.
Usually, each protocol has a function info that display its information, and a function myprotocol_packet that deals with the size of the packers and call the info function.
This project isn't really commented as I didn't feel the need for it, unless for some details of the documentation / structures I found online from the pcap Documentation.
This project contains a directory full of file to test the differents protocol with the
-o options
-i name_interface
If there isn't any interfaces, it just takes the first interface available and listen the packets.
-o name_file
Analyse packets from pcap files
-v level_verbosity
(verbosity = 1, 2 or 3)
enable the level of verbosity of the packets.
1 for low, 3 for a lot of details.
By default it shows all the details
A lot of file with trames examples are in the test_files directory
To launch the project with one of them, just use :
sudo ./bin/analyseur -o test_files/smtp_ipv6.cap
Deals with the options, and call either the function for a file or for live listening.
Verbosity is a global and extern variable used all along throughout files.
Protocols dealed by the program :
- ipv4
- ipv6
- arp
Protocols dealed by the program :
- udp
- tcp
UDP and TCP call a function define in port.c that deals with all differents application protocols.
Protocols dealed by the program :
- bootp
- dns
- ftp
- http
- imap
- pop3
- smtp
- telnet (not totally done yet)