Skip to content

hina-Az/PRODIGY_CS_05

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Network Packet Analyzer

Develop a packet sniffer tool that captures and analyzes network packets. Display relevant information such as source and destination IP addresses, protocols, and payload data. Ensure the ethical use of the tool for educational purposes.

Here is a simple packet sniffer tool in Python using the Scapy library. This tool captures network packets and displays relevant information like source and destination IP addresses, protocols, and payload data.

To use this tool, you need to install the Scapy library. You can install it using pip. You can do this by running the following command in your terminal of VS Code:

'pip install scapy'

Please note that this tool is for educational purposes only. Unauthorized packet sniffing or network analysis can be illegal and unethical. Always ensure you have the necessary permissions and authorizations before using such tools.

Also, this tool captures all IPv4 packets. If you want to capture specific types of packets, you can modify the filter parameter in the sniff function. For example, if you want to capture only TCP packets, you can use the filter "tcp". For more information on packet filters, you can refer to the Scapy documentation.

https://scapy.readthedocs.io/en/latest/