Question: Ask an expert ASSIGNMENT 5 3 0 points Code Assignment: Packet Sniffer and ARP Poisoning with Scapy Objective: This assignment is designed to help you
Ask an expert
ASSIGNMENT
points
Code Assignment: Packet Sniffer and ARP Poisoning with Scapy
Objective: This assignment is designed to help you build foundational skills in network analysis
and attacks using Python and the Scapy library. You will create three scripts: two for sniffing
network packets and one for performing an ARP poisoning attack.
Tasks:
Part : Building a Packet Sniffer
Simple Packet Sniffer:
Create a Python script basicsniffer.py that uses Scapy's sniff function to
capture and print details of all packets on the network.
Ensure that your script captures packets indefinitely or until manually stopped.
Email Sniffer:
Modify your packet sniffer script to capture only emailrelated traffic SMTP
POP IMAP
Create a new script emailsniffer.py that applies a Berkeley Packet Filter
BPF to capture packets on ports POPIMAP and SMTP
Print any captured email credentials USER and PASS commands
Part : Implementing ARP Poisoning
ARP Poisoning Attack:
Write a script arppoison.py to perform an ARP poisoning attack on a local
network.
The script should:
Poison the ARP cache of both the target machine and the gateway.
Intercept and display the network traffic of the victim.
Restore the ARP tables of the victim and the gateway after the attack is
stopped.
What need to turnin:
Submit all Python scripts basicsniffer.py emailsniffer.py arppoison.py
with comments explaining the code logic
Test each script and provide the outputs as a Word or PDF document. Ensure to label
your screenshots clearly
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
