Skip to content

Commit

Permalink
Update --help
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh1Yo committed Jul 28, 2021
1 parent 8456d4b commit bfe5f42
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ USAGE:
x8 [FLAGS] [OPTIONS]
FLAGS:
--as-body Send parameters via body.
--as-body Send parameters via body.
Built in body types that can be detected automatically: json, urlencode
--disable-cachebuster
--disable-colors
Expand All @@ -144,16 +144,16 @@ FLAGS:
variables' error messages
-h, --help Prints help information
--headers Switch to header discovery mode.
Forbidden chars would be automatically removed from headers' names
Forbidden chars would be automatically removed from headers names
--http2 Prefer http/2 over http/1.1
--is-json If the output is valid json and the content type does not contain 'json'
keyword - specify this argument for a more accurate search
--keep-newlines --body 'a\r\nb' -> --body 'a{{new_line}}b'.
Works with body and parameter templates only
--replay-once If replay proxy is specified, send all found parameters within one request
Works with body and parameter templates only.
--replay-once If replay proxy is specified, send all found parameters within one request.
--test Prints request and response
-V, --version Prints version information
--verify Verify found parameters one more time
--verify Verify found parameters one more time.
OPTIONS:
-b, --body <body> Example: --body '{"x":{%s}}'
Expand Down Expand Up @@ -182,14 +182,14 @@ OPTIONS:
-P, --param-template <parameter_template>
%k - key, %v - value. Example: --param-template 'user[%k]=%v&'
--proto <proto> Uses when the request file is present. (default is "https")
--proto <proto> Protocol to use with request file (default is "https")
-x, --proxy <proxy>
--replay-proxy <replay-proxy>
Request target with every found parameter via replay proxy at the end
Request target with every found parameter via replay proxy at the end.
-r, --request <request> The file with raw http request
-r, --request <request> The file with the raw http request
--save-responses <save-responses> Save matched responses to a directory
-u, --url <url> You can add a custom injection point with %s
-u, --url <url> You can add a custom injection point with %s.
--value-size <value_size>
Custom value size. Affects {{random}} variables as well (default is 5)
Expand Down
16 changes: 8 additions & 8 deletions src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ pub fn get_config() -> (Config, usize) {
.arg(Arg::with_name("url")
.short("u")
.long("url")
.help("You can add a custom injection point with %s")
.help("You can add a custom injection point with %s.")
.takes_value(true)
.conflicts_with("request")
)
.arg(Arg::with_name("request")
.short("r")
.long("request")
.help("The file with raw http request")
.help("The file with the raw http request")
.takes_value(true)
.conflicts_with("url")
)
.arg(Arg::with_name("proto")
.long("proto")
.help("Uses when the request file is present. (default is \"https\")")
.help("Protocol to use with request file (default is \"https\")")
.takes_value(true)
.requires("request")
.conflicts_with("url")
Expand Down Expand Up @@ -111,7 +111,7 @@ pub fn get_config() -> (Config, usize) {
.arg(
Arg::with_name("headers-discovery")
.long("headers")
.help("Switch to header discovery mode.\nForbidden chars would be automatically removed from headers' names")
.help("Switch to header discovery mode.\nForbidden chars would be automatically removed from headers names")
.conflicts_with("as-body")
.conflicts_with("param-template")
)
Expand Down Expand Up @@ -142,19 +142,19 @@ pub fn get_config() -> (Config, usize) {
.arg(
Arg::with_name("keep-newlines")
.long("keep-newlines")
.help("--body 'a\\r\\nb' -> --body 'a{{new_line}}b'.\nWorks with body and parameter templates only")
.help("--body 'a\\r\\nb' -> --body 'a{{new_line}}b'.\nWorks with body and parameter templates only.")
)
.arg(
Arg::with_name("replay-once")
.long("replay-once")
.help("If replay proxy is specified, send all found parameters within one request")
.help("If replay proxy is specified, send all found parameters within one request.")
.requires("replay-proxy")
)
.arg(
Arg::with_name("replay-proxy")
.takes_value(true)
.long("replay-proxy")
.help("Request target with every found parameter via replay proxy at the end")
.help("Request target with every found parameter via replay proxy at the end.")
)
.arg(
Arg::with_name("custom-parameters")
Expand Down Expand Up @@ -244,7 +244,7 @@ pub fn get_config() -> (Config, usize) {
.arg(
Arg::with_name("verify")
.long("verify")
.help("Verify found parameters one more time")
.help("Verify found parameters one more time.")
);

let args = app.clone().get_matches();
Expand Down

0 comments on commit bfe5f42

Please sign in to comment.