Skip to content

Commit

Permalink
Merge pull request #61 from cerberauth/cli-args-placeholder
Browse files Browse the repository at this point in the history
feat: add some cli curl flags placeholder
  • Loading branch information
emmanuelgautier authored Mar 11, 2024
2 parents a776523 + 87363dd commit 9a96f20
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cmd/scan/curl.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ var (
method string
headers []string
cookies []string

placeholderString string
placeholderBool bool
)

func NewCURLScanCmd() (scanCmd *cobra.Command) {
Expand Down Expand Up @@ -57,5 +60,15 @@ func NewCURLScanCmd() (scanCmd *cobra.Command) {
scanCmd.PersistentFlags().StringArrayVarP(&headers, "header", "H", nil, "Pass custom header(s) to target API")
scanCmd.PersistentFlags().StringArrayVarP(&cookies, "cookie", "b", nil, "Send cookies from string")

// The following flags are not implemented yet
scanCmd.PersistentFlags().StringVarP(&placeholderString, "data", "d", "", "HTTP POST data")
scanCmd.PersistentFlags().BoolVarP(&placeholderBool, "fail", "f", false, "Fail silently (no output at all) on HTTP errors")
scanCmd.PersistentFlags().BoolVarP(&placeholderBool, "include", "i", false, "Include protocol headers in the output")
scanCmd.PersistentFlags().BoolVarP(&placeholderBool, "remote-name", "O", false, "Write output to a file named as the remote file")
scanCmd.PersistentFlags().BoolVarP(&placeholderBool, "silent", "s", false, "Run in silent mode")
scanCmd.PersistentFlags().StringVarP(&placeholderString, "upload-file", "T", "", "Transfer file to target API")
scanCmd.PersistentFlags().StringVarP(&placeholderString, "user", "u", "", "Specify the user name and password to use for server authentication")
scanCmd.PersistentFlags().StringVarP(&placeholderString, "user-agent", "A", "", "User-Agent to send to server")

return scanCmd
}

0 comments on commit 9a96f20

Please sign in to comment.