import json


def rule(event):
    if all(
        [
            "OabVirtualDirectory" in json.dumps(event.to_dict()),
            " -ExternalUrl " in json.dumps(event.to_dict()),
            any(
                [
                    "eval(request" in json.dumps(event.to_dict()),
                    "http://f/<script" in json.dumps(event.to_dict()),
                    '"unsafe"};' in json.dumps(event.to_dict()),
                    "function Page_Load()" in json.dumps(event.to_dict()),
                ]
            ),
        ]
    ):
        return True
    return False
