cortado/rtas/linux_persistence_webserver_curl_wget_piped_to_interpreter.py [21:31]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    ],
    techniques=["T1505", "T1059", "T1071"],
)
def main() -> None:
    log.info("Creating a fake executable..")
    masquerade = "/tmp/sh"

    source = _common.get_resource_path("bin/linux.ditto_and_spawn")
    _common.copy_file(source, masquerade)
    log.info("Granting execute permissions...")
    _ = _common.execute_command(["chmod", "+x", masquerade])
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



cortado/rtas/linux_persistence_webserver_curl_wget_suspicious_redirect.py [19:29]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    ],
    techniques=["T1505", "T1059", "T1071"],
)
def main() -> None:
    log.info("Creating a fake executable..")
    masquerade = "/tmp/sh"

    source = _common.get_resource_path("bin/linux.ditto_and_spawn")
    _common.copy_file(source, masquerade)
    log.info("Granting execute permissions...")
    _ = _common.execute_command(["chmod", "+x", masquerade])
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



