chore: make sure cli flags are lowercase

This commit is contained in:
f1zm0 2023-04-20 08:40:44 +02:00
parent 01e102461b
commit 0466fd0c87

View File

@ -54,7 +54,6 @@ func parseCLIFlags() options {
"Examples",
"hades -f shellcode.bin -t selfthread",
}
fmt.Fprint(os.Stderr, strings.Join(helpMsg, "\n"))
}
@ -91,6 +90,7 @@ func main() {
}
// check if injection technique is supported by checking if the user-provided name is in techniques slice
opts.injectionTechnique = strings.ToLower(opts.injectionTechnique)
if !contains(techniques, opts.injectionTechnique) {
fmt.Println("[-] injection technique not supported")
os.Exit(1)