import http.server
import ssl
import os
os.chdir('/www/wwwroot/adadafaa.apay.eu.cc/xxe_attack')

handler = http.server.SimpleHTTPRequestHandler
httpd = http.server.HTTPServer(('0.0.0.0', 8080), handler)
context = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
context.load_cert_chain(certfile='/root/.acme.sh/x1.adadafaa.apay.eu.cc/fullchain.cer', keyfile='/root/.acme.sh/x1.adadafaa.apay.eu.cc/x1.adadafaa.apay.eu.cc.key')
httpd.socket = context.wrap_socket(httpd.socket, server_side=True)
print("Serving HTTPS on 0.0.0.0:8080 (RSA cert)", flush=True)
httpd.serve_forever()
