diff options
author | Bryan McNulty <bryanmcnulty@protonmail.com> | 2025-04-20 18:23:36 -0500 |
---|---|---|
committer | Bryan McNulty <bryanmcnulty@protonmail.com> | 2025-04-20 18:23:36 -0500 |
commit | 1168c8657117cb72426e9e2bfc68bf8ae9575bb1 (patch) | |
tree | b6735b553e80719ccf453bde8db694e192bac8ee /cmd/args.go | |
parent | 6ade3ddd945e50d7a145294ac4681489be5d22f8 (diff) | |
download | goexec-1168c8657117cb72426e9e2bfc68bf8ae9575bb1.tar.gz goexec-1168c8657117cb72426e9e2bfc68bf8ae9575bb1.zip |
Improve smb.OutputFileFetcher; introduce stage input
Diffstat (limited to 'cmd/args.go')
-rw-r--r-- | cmd/args.go | 7 |
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)") |