From c05a350b4f16bbf1a709b82a97584efd153e6a8e Mon Sep 17 00:00:00 2001 From: Tim Allclair Date: Thu, 16 Jul 2020 10:26:01 -0700 Subject: [PATCH] Update usage information for --http-override --- test/images/agnhost/README.md | 3 +++ test/images/agnhost/netexec/netexec.go | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/test/images/agnhost/README.md b/test/images/agnhost/README.md index fefcbd18dfb..f3fd8252a2d 100644 --- a/test/images/agnhost/README.md +++ b/test/images/agnhost/README.md @@ -421,6 +421,9 @@ If `--tls-cert-file` is added (ideally in conjunction with `--tls-private-key-fi will be upgraded to HTTPS. The image has default, `localhost`-based cert/privkey files at `/localhost.crt` and `/localhost.key` (see: [`porter` subcommand](#porter)) +If `--http-override` is set, the HTTP(S) server will always serve the override path & options, +ignoring the request URL. + It will also start a UDP server on the indicated UDP port that responds to the following commands: - `hostname`: Returns the server's hostname diff --git a/test/images/agnhost/netexec/netexec.go b/test/images/agnhost/netexec/netexec.go index af05011c330..68cb8009f79 100644 --- a/test/images/agnhost/netexec/netexec.go +++ b/test/images/agnhost/netexec/netexec.go @@ -94,6 +94,13 @@ var CmdNetexec = &cobra.Command{ Returns a JSON with the fields "output" (containing the file's name on the server) and "error" containing any potential server side errors. +If "--tls-cert-file" is added (ideally in conjunction with "--tls-private-key-file", the HTTP server +will be upgraded to HTTPS. The image has default, "localhost"-based cert/privkey files at +"/localhost.crt" and "/localhost.key" (see: "porter" subcommand) + +If "--http-override" is set, the HTTP(S) server will always serve the override path & options, +ignoring the request URL. + It will also start a UDP server on the indicated UDP port that responds to the following commands: - "hostname": Returns the server's hostname