"""AUTARCH WiFi Pineapple / Rogue AP Evil twin AP, captive portal, karma attack, client MITM, DNS spoofing, and credential capture for wireless assessments. Designed for Raspberry Pi and SBCs with dual WiFi or WiFi + Ethernet. """ DESCRIPTION = "Rogue AP — evil twin, captive portal, karma attacks" AUTHOR = "darkHal" VERSION = "1.0" CATEGORY = "offense" import os import re import json import time import shutil import signal import threading import subprocess from pathlib import Path from datetime import datetime from typing import Dict, List, Optional, Any try: from core.paths import find_tool, get_data_dir except ImportError: def find_tool(name): return shutil.which(name) def get_data_dir(): return str(Path(__file__).parent.parent / 'data') # ── Captive Portal HTML Templates ──────────────────────────────────────────── CAPTIVE_PORTAL_TEMPLATES = { 'hotel_wifi': '''
Terms of Service
1. This wireless network is provided for authorized use only. By accessing this network, you agree to be bound by these terms.
2. You agree not to engage in any illegal or unauthorized activity while using this network. All network traffic may be monitored and logged.
3. The network provider is not responsible for any data loss, security breaches, or damages resulting from use of this network.
4. You acknowledge that this is a shared network and that data transmitted may be visible to other users. Use of VPN is recommended for sensitive communications.
5. The provider reserves the right to terminate access at any time without notice for any violation of these terms.
6. Maximum bandwidth allocation applies. Streaming and large downloads may be throttled during peak hours.
7. You agree to provide accurate registration information.
You are now connected to the internet. You may close this page and begin browsing.