https://github.com/priyabug/icmp-redirect-attack-lab
Demonstrates the execution and impact of an ICMP Redirect Attack, focusing on how attackers can manipulate routing to hijack network traffic.
https://github.com/priyabug/icmp-redirect-attack-lab
icmp icmp-redirect ip-protocol mitm-attacks python3 redirection routing show-ip-route ubuntu windows11
Last synced: 3 months ago
JSON representation
Demonstrates the execution and impact of an ICMP Redirect Attack, focusing on how attackers can manipulate routing to hijack network traffic.
- Host: GitHub
- URL: https://github.com/priyabug/icmp-redirect-attack-lab
- Owner: Priyabug
- Created: 2024-08-16T04:40:38.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-02-21T08:20:36.000Z (3 months ago)
- Last Synced: 2025-02-21T09:27:27.553Z (3 months ago)
- Topics: icmp, icmp-redirect, ip-protocol, mitm-attacks, python3, redirection, routing, show-ip-route, ubuntu, windows11
- Language: Python
- Homepage:
- Size: 2.38 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ICMP Redirect Attack Lab
An ICMP redirect is an error message issued by a router to the sender of an IP packet, indicating that the packet is being routed inefficiently. The purpose of this message is to inform the sender to use a different router for future packets destined for the same address. However, ICMP redirects can be exploited by attackers to manipulate a victim’s routing table, redirecting their traffic through a malicious router.The goal of this task is to execute an ICMP redirect attack, forcing the victim to route packets intended for 192.168.60.5 through a compromised router at 10.9.0.111, controlled by the attacker. Since the attacker has control over this router, they can intercept, modify, and forward the victim’s packets, effectively performing a Man-in-the-Middle (MITM) attack. This allows the attacker to monitor, alter, or inject malicious content into the communication flow, potentially compromising the integrity and confidentiality of the transmitted data.
In this lab, students will conduct several attacks on TCP. This lab covers the following topics:
- The IP and ICMP protocols
- ICMP redirect attack
- Routing

Languages and Utilities Used
- Python
- Ubuntu 20.04 VM
Environments Used
- Windows 11 Home
Program walk-through:
- Task 1: Launching ICMP Redirect Attack
- Task 2: Launching the MITM Attack