diff --git a/docs/index.md b/docs/index.md index 33725b4..d4c9245 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,4 +1,4 @@ -# ARP Spoofer Documentation +# ARP Spoofer Welcome to the ARP Spoofer documentation. This tool provides advanced network packet analysis and ARP spoofing capabilities. @@ -12,5 +12,4 @@ ARP Spoofer is a Python-based tool that enables: ## Quick Links - [Installation Guide](installation.md) -- [Usage Guide](usage.md) - [API Reference](api.md) \ No newline at end of file diff --git a/src/spoofer/arp_spoofer.py b/src/spoofer/arp_spoofer.py index 892a9ef..c8daa18 100644 --- a/src/spoofer/arp_spoofer.py +++ b/src/spoofer/arp_spoofer.py @@ -20,7 +20,7 @@ from src.core.exceptions import NetworkException from src.models.models import PacketInfo, Device from src.utils.validators import validate_ip -from jinja2 import Environment, FileSystemLoader +from jinja2 import Environment, FileSystemLoader, select_autoescape warnings.filterwarnings("ignore") @@ -175,7 +175,10 @@ def save_captured_data(self, format: str = "txt"): }) elif format == "html": - env = Environment(loader=FileSystemLoader('src/utils')) + env = Environment( + loader=FileSystemLoader('src/utils'), + autoescape=select_autoescape(['html', 'xml']) + ) template = env.get_template('report_template.html') # Enhance packet data with hostname resolution diff --git a/src/utils/report_template.html b/src/utils/report_template.html index 549070b..cd6affe 100644 --- a/src/utils/report_template.html +++ b/src/utils/report_template.html @@ -149,7 +149,7 @@
Gateway IP: {{ gateway_ip }}
Patterns: {{ patterns }}
-Time |
---|