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 5
30 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 1: Building a Packet Sniffer
Simple Packet Sniffer:
Create a Python script (basic_sniffer.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 email-related traffic (SMTP,
POP3, IMAP).
Create a new script (email_sniffer.py) that applies a Berkeley Packet Filter
(BPF) to capture packets on ports 110(POP3),143(IMAP), and 25(SMTP).
Print any captured email credentials (USER and PASS commands).
Part 2: Implementing ARP Poisoning
ARP Poisoning Attack:
Write a script (arp_poison.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 turn-in:
Submit all Python scripts (basic_sniffer.py, email_sniffer.py, arp_poison.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 (9pts).
Ask an expert ASSIGNMENT 5 3 0 points Code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!