import re


def rule(event):
    if any(
        [
            re.match(
                r"ping\\s+-n.{6,64}echo EEEE\\s?>\\s?", event.deep_get("CommandLine", default="")
            ),
            all(
                [
                    re.match(r"ipconfig\\s+/all", event.deep_get("CommandLine", default="")),
                    "\\temp\\res.ip" in event.deep_get("CommandLine", default=""),
                ]
            ),
            all(
                [
                    "interface ip show config" in event.deep_get("CommandLine", default=""),
                    "\\temp\\netsh.res" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
