router7/cmd/captured/captured.go
Michael Stapelberg bb563e0798 add captured: sends packets to Wireshark SSH remote capture
Just point your wireshark to 10.0.0.1:5022.
2018-06-17 15:19:49 +02:00

24 lines
382 B
Go

package main
import (
"flag"
"log"
)
var (
hostKeyPath = flag.String("host_key",
"/perm/breakglass.host_key",
"path to a PEM-encoded RSA, DSA or ECDSA private key (create using e.g. ssh-keygen -f /perm/breakglass.host_key -N '' -t rsa)")
)
func logic() error {
return listenAndServe()
}
func main() {
flag.Parse()
if err := logic(); err != nil {
log.Fatal(err)
}
}