You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 26, 2020. It is now read-only.
Fix me if I'm wrong
I don't know how you guys can copy and run the script within this function in attacks.run_script.RunScript#_run_script
def_run_script(self, host, user, local_script, remote_script, pem):
""" Copy a script to a remote host and exec it. """self.log.info("running %s in node %s", local_script, host)
pem_decoded=base64.b64decode(pem).decode()
temp=tempfile.NamedTemporaryFile('w', delete=False)
temp.write(pem_decoded)
temp.flush()
temp.close()
self.log.info("connect ssh client to %s with user %s", host, user)
self.log.info("Executing remote script")