From 2365131a256918fe95b73290950143d8e500dc71 Mon Sep 17 00:00:00 2001 From: Sophie Axebane Date: Tue, 26 Dec 2023 20:14:55 -0600 Subject: [PATCH] store the payload in tmp directory, not my home directory --- deploy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.py b/deploy.py index aafdd01..f8ba469 100644 --- a/deploy.py +++ b/deploy.py @@ -27,7 +27,7 @@ def deploy(): sshc.connect(cfg["server"],port=cfg["port"],key_filename=cfg["ssh-key"]) sftp = sshc.open_sftp() # after opening the ssh connection, we'll open a sftp connection. - sftp.put("./payload/payload.sh", "/home/system64/payload.sh") # upload the payload via SFTP. + sftp.put("./payload/payload.sh", "/payload.sh") # upload the payload via SFTP. sshc.exec_command("chmod +x $HOME/payload.sh") # make it executable sshc.exec_command("./payload.sh") # and finally, run the payload.