Skip to content

Commit

Permalink
Enhance command-line flag descriptions for sxss command with examples
Browse files Browse the repository at this point in the history
Signed-off-by: HAHWUL <[email protected]>
  • Loading branch information
hahwul committed Dec 9, 2024
1 parent 97224c2 commit 2b1b0be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/sxss.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

0 comments on commit 2b1b0be

Please sign in to comment.