From 56edad533c3150c214c7eb90b9b298078f13bdac Mon Sep 17 00:00:00 2001 From: Vomitblood Date: Fri, 24 Jan 2025 11:04:30 +0800 Subject: [PATCH] fixed flag panic --- internal/cmd/cmd.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/cmd/cmd.go b/internal/cmd/cmd.go index 66bacf5..7dab88c 100644 --- a/internal/cmd/cmd.go +++ b/internal/cmd/cmd.go @@ -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 "", "", "" }