From 2b1b0bed28e473e52cb338f1160dcd63bb2b2abf Mon Sep 17 00:00:00 2001 From: HAHWUL Date: Tue, 10 Dec 2024 00:27:42 +0900 Subject: [PATCH] Enhance command-line flag descriptions for sxss command with examples Signed-off-by: HAHWUL --- cmd/sxss.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/sxss.go b/cmd/sxss.go index b48fee42..85b3a368 100644 --- a/cmd/sxss.go +++ b/cmd/sxss.go @@ -53,7 +53,7 @@ func printSXSSErrorAndUsage() { func init() { rootCmd.AddCommand(sxssCmd) - sxssCmd.PersistentFlags().StringVar(&requestMethod, "request-method", "GET", "Request method send to the server") - sxssCmd.PersistentFlags().StringVar(&trigger, "trigger", "", "Checking this url after inject sxss code\n * Example: --trigger=https://~~/profile") - sxssCmd.PersistentFlags().IntVar(&sequence, "sequence", -1, "Set sequence to first number\n * Example: --trigger=https://~/view?no=SEQNC --sequence=3") + sxssCmd.PersistentFlags().StringVar(&requestMethod, "request-method", "GET", "Specify the HTTP request method to send to the server. Example: --request-method 'POST'") + sxssCmd.PersistentFlags().StringVar(&trigger, "trigger", "", "Specify the URL to check after injecting SXSS code. Example: --trigger 'https://example.com/profile'") + sxssCmd.PersistentFlags().IntVar(&sequence, "sequence", -1, "Set the initial sequence number for the trigger URL. Example: --trigger 'https://example.com/view?no=SEQNC' --sequence 3") }