import http.server, socketserver, datetime, sys
class T(http.server.SimpleHTTPRequestHandler):
    def log_message(self, fmt, *a):
        with open('/tmp/ssrflog80/httpd.log','a') as f:
            f.write(f"{datetime.datetime.utcnow().isoformat()}Z {self.address_string()} {fmt%a}\n")
class S(socketserver.ThreadingTCPServer):
    allow_reuse_address = True; daemon_threads = True
S(('0.0.0.0',80), T).serve_forever()
