aboutsummaryrefslogtreecommitdiff
path: root/cmd/args.go
diff options
context:
space:
mode:
authorBryan McNulty <bryanmcnulty@protonmail.com>2025-04-20 18:23:36 -0500
committerBryan McNulty <bryanmcnulty@protonmail.com>2025-04-20 18:23:36 -0500
commit1168c8657117cb72426e9e2bfc68bf8ae9575bb1 (patch)
treeb6735b553e80719ccf453bde8db694e192bac8ee /cmd/args.go
parent6ade3ddd945e50d7a145294ac4681489be5d22f8 (diff)
downloadgoexec-1168c8657117cb72426e9e2bfc68bf8ae9575bb1.tar.gz
goexec-1168c8657117cb72426e9e2bfc68bf8ae9575bb1.zip
Improve smb.OutputFileFetcher; introduce stage input
Diffstat (limited to 'cmd/args.go')
-rw-r--r--cmd/args.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd/args.go b/cmd/args.go
index 8af8598..109a528 100644
--- a/cmd/args.go
+++ b/cmd/args.go
@@ -29,8 +29,13 @@ func registerNetworkFlags(fs *pflag.FlagSet) {
//cmd.MarkFlagsMutuallyExclusive("no-epm", "epm-filter")
}
+func registerStageFlags(fs *pflag.FlagSet) {
+ fs.StringVarP(&stageFilePath, "stage", "E", "", "File to stage and execute")
+ //fs.StringVarP(&stageArgs ...)
+}
+
func registerExecutionFlags(fs *pflag.FlagSet) {
- fs.StringVarP(&exec.Input.Executable, "executable", "e", "", "Windows executable to invoke")
+ fs.StringVarP(&exec.Input.Executable, "exec", "e", "", "Remote Windows executable to invoke")
fs.StringVarP(&exec.Input.Arguments, "args", "a", "", "Process command line arguments")
fs.StringVarP(&exec.Input.Command, "command", "c", "", "Windows process command line (executable & arguments)")