Skip to content

sadbattery/Prodigy_CS_Task5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

header

Packet Sniffer Tool using `scapy` or `pcapy`

Libraries Used:

  • scapy
  • pcapy
  • sys

How to Use:

Run using Jupyter NoteBook or any Python IDE.

For V1.0

How to Run:
  • Run the script
  • It will ask you about the interface you want to sniff (nothing means default).
  • It will also ask about the number of packets you want to capture (0 means continuous)
How to Stop:
  • CTRL + C will terminate the script.

  • It will create a file named packet_log.txt in the default folder.

Installation:

Install Npcap Before running the script

scapy :

A Packet manipulation program and library which is used to capture, create, manipulate, and analyze network packets at a low level using a simple and intuitive syntax.

pip install scapy

OR

pcapy :

pip install pcapy

sys :

sys is a built-in Python module that provides access to some variables used or maintained by the Python interpreter. It is used to

  • Access to Command Line Arguments
  • Access to Standard Streams
  • Access to System-Specific Parameters and Functions
  • Exit Functions

How to Troubleshoot (In case of Errors)

  • Run as Administrator
  • Check Npcap Installation
  • Restart Pcap Service
  • Update Scapy and Npcap
    pip install --upgrade scapy

About

Packet Sniffer Tool using scapy or pcapy

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages