def rule(event):
    if any(
        [
            any(
                [
                    "/../vpns/" in event.deep_get("cs-uri-query", default=""),
                    event.deep_get("cs-uri-query", default="").endswith("/vpns/cfg/smb.conf"),
                ]
            ),
            all(
                [
                    "/vpns/portal/scripts/" in event.deep_get("cs-uri-query", default=""),
                    ".pl" in event.deep_get("cs-uri-query", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
