v2.0.0: Fix entrypoint ignoring parameters & fix default dictionary values

This commit is contained in:
Brendan LE GLAUNEC
2017-09-19 07:49:01 +02:00
parent 93b853c130
commit 83f90a9e64
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -20,4 +20,4 @@ RUN go get github.com/fatih/color
RUN go install
ENTRYPOINT /go/bin/cameraccess
ENTRYPOINT ["/go/bin/cameraccess"]
+2 -2
View File
@@ -26,8 +26,8 @@ type options struct {
Target string `short:"t" long:"target" description:"The target on which to scan for open RTSP streams - required" required:"true"`
Ports string `short:"p" long:"ports" description:"The ports on which to search for RTSP streams" default:"554,8554"`
OutputFile string `short:"o" long:"nmap-output" description:"The path where nmap will create its XML result file" default:"/tmp/cameradar_scan.xml"`
Routes string `short:"r" long:"custom-routes" description:"The path on which to load a custom routes dictionary" default:"./dictionaries/routes"`
Credentials string `short:"c" long:"custom-credentials" description:"The path on which to load a custom credentials JSON dictionary" default:"./dictionaries/credentials.json"`
Routes string `short:"r" long:"custom-routes" description:"The path on which to load a custom routes dictionary" default:"../dictionaries/routes"`
Credentials string `short:"c" long:"custom-credentials" description:"The path on which to load a custom credentials JSON dictionary" default:"../dictionaries/credentials.json"`
Speed int `short:"s" long:"speed" description:"The nmap speed preset to use" default:"4"`
Timeout int `short:"T" long:"timeout" description:"The timeout in miliseconds to use for attack attempts" default:"1000"`
EnableLogs bool `short:"l" long:"log" description:"Enable the logs for nmap's output to stdout"`