fixed flag panic

This commit is contained in:
Vomitblood 2025-01-24 11:04:30 +08:00
parent 81b1779bbe
commit 56edad533c

View file

@ -11,8 +11,8 @@ func GetArguments() (string, string, string) {
var Lport string
flag.StringVar(&UrlTarget, "u", "", "The target URL (example: http://10.129.250.32)")
flag.StringVar(&Lhost, "-h", "", "Localhost (example: 10.10.14.10)")
flag.StringVar(&Lport, "-p", "", "The listening port for reverse shell (example: 4444)")
flag.StringVar(&Lhost, "h", "", "Localhost (example: 10.10.14.10)")
flag.StringVar(&Lport, "p", "", "The listening port for reverse shell (example: 4444)")
flag.Parse()
@ -23,7 +23,7 @@ func GetArguments() (string, string, string) {
}
if Lhost == "" {
fmt.Println("[*] Please provide your IP address (-l 10.10.14.10)")
fmt.Println("[*] Please provide your IP address (-h 10.10.14.10)")
flag.Usage()
return "", "", ""
}