#!/usr/bin/env python3
"""Minimal HTTP server for the Reading Mode script injection POC.

Serves victim.html on http://127.0.0.1:18080/victim.html
"""
import http.server
import os
import socketserver

PORT = 18080
os.chdir(os.path.dirname(os.path.abspath(__file__)))

class Handler(http.server.SimpleHTTPRequestHandler):
    def log_message(self, fmt, *args):
        pass  # quiet

socketserver.TCPServer.allow_reuse_address = True
with socketserver.TCPServer(("127.0.0.1", PORT), Handler) as httpd:
    print(f"Serving on http://127.0.0.1:{PORT}/")
    httpd.serve_forever()
