diff options
author | Bryan McNulty <bryanmcnulty@protonmail.com> | 2025-04-17 02:02:13 -0500 |
---|---|---|
committer | Bryan McNulty <bryanmcnulty@protonmail.com> | 2025-04-17 02:02:13 -0500 |
commit | cdc0205d036c78e8ce1c27e8dd4f71542959f889 (patch) | |
tree | 13aaccd4c5f232729dc11a9b59fd193ffb0e0929 /cmd/root.go | |
parent | 55eb4275fb760ac7a3ce1444f5ae0ded9e2ff91c (diff) | |
download | goexec-cdc0205d036c78e8ce1c27e8dd4f71542959f889.tar.gz goexec-cdc0205d036c78e8ce1c27e8dd4f71542959f889.zip |
Remote output file deletion after
Diffstat (limited to 'cmd/root.go')
-rw-r--r-- | cmd/root.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd/root.go b/cmd/root.go index 733bb75..0f8a17a 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -59,9 +59,10 @@ var ( exec.Output.RemotePath = util.RandomWindowsTempFile() } exec.Output.Provider = &smb.OutputFileFetcher{ - Client: &smbClient, - Share: `C$`, - File: exec.Output.RemotePath, + Client: &smbClient, + Share: `C$`, + File: exec.Output.RemotePath, + DeleteOutputFile: true, // TEMP } } }, |