File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -375,7 +375,7 @@ HTTP server:
375
375
376
376
### netexec
377
377
378
- Starts a HTTP server on given port with the following endpoints:
378
+ Starts a HTTP(S) server on given port with the following endpoints:
379
379
380
380
- ` / ` : Returns the request's timestamp.
381
381
- ` /clientip ` : Returns the request's IP address.
@@ -407,6 +407,10 @@ Starts a HTTP server on given port with the following endpoints:
407
407
Returns a JSON with the fields ` output ` (containing the file's name on the server) and
408
408
` error ` containing any potential server side errors.
409
409
410
+ If ` --tls-cert-file ` is added (ideally in conjunction with ` --tls-private-key-file ` , the HTTP server
411
+ will be upgraded to HTTPS. The image has default, ` localhost ` -based cert/privkey files at
412
+ ` /localhost.crt ` and ` /localhost.key ` (see: [ ` porter ` subcommand] ( #porter ) )
413
+
410
414
It will also start a UDP server on the indicated UDP port that responds to the following commands:
411
415
412
416
- ` hostname ` : Returns the server's hostname
@@ -419,7 +423,7 @@ responding to the same commands as the UDP server.
419
423
Usage:
420
424
421
425
``` console
422
- kubectl exec test-agnhost -- /agnhost netexec [--http-port <http-port>] [--udp-port <udp-port>] [--sctp-port <sctp-port>]
426
+ kubectl exec test-agnhost -- /agnhost netexec [--http-port <http-port>] [--udp-port <udp-port>] [--sctp-port <sctp-port>] [--tls-cert-file <cert-file>] [--tls-private-key-file <privkey-file>]
423
427
```
424
428
425
429
### nettest
Original file line number Diff line number Diff line change 1
- 2.14
1
+ 2.15
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ import (
49
49
)
50
50
51
51
func main () {
52
- rootCmd := & cobra.Command {Use : "app" , Version : "2.14 " }
52
+ rootCmd := & cobra.Command {Use : "app" , Version : "2.15 " }
53
53
54
54
rootCmd .AddCommand (auditproxy .CmdAuditProxy )
55
55
rootCmd .AddCommand (connect .CmdConnect )
You can’t perform that action at this time.
0 commit comments