Skip to content

Commit

Permalink
Added new pattern options to ronin grep and ronin extract docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Dec 8, 2024
1 parent 0484108 commit 78f7532
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 2 deletions.
7 changes: 7 additions & 0 deletions lib/ronin/cli/commands/extract.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ module Commands
# -N, --number Searches for all numbers
# -X, --hex-number Searches for all hexadecimal numbers
# -V, --version-number Searches for all version numbers
# --alpha Searches for all alphabetic characters
# --uppercase Searches for all uppercase alphabetic characters
# --lowercase Searches for all lowercase alphabetic characters
# --alpha-numeric Searches for all alphanumeric characters
# --hex Searches for all hexadecimal characters
# --uppercase-hex Searches for all uppercase hexadecimal characters
# --lowercase-hex Searches for all lowercase hexadecimal characters
# -w, --word Searches for all words
# --mac-addr Searches for all MAC addresses
# -4, --ipv4-addr Searches for all IPv4 addresses
Expand Down
7 changes: 7 additions & 0 deletions lib/ronin/cli/commands/grep.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ module Commands
# -N, --number Searches for all numbers
# -X, --hex-number Searches for all hexadecimal numbers
# -V, --version-number Searches for all version numbers
# --alpha Searches for all alphabetic characters
# --uppercase Searches for all uppercase alphabetic characters
# --lowercase Searches for all lowercase alphabetic characters
# --alpha-numeric Searches for all alphanumeric characters
# --hex Searches for all hexadecimal characters
# --uppercase-hex Searches for all uppercase hexadecimal characters
# --lowercase-hex Searches for all lowercase hexadecimal characters
# -w, --word Searches for all words
# --mac-addr Searches for all MAC addresses
# -4, --ipv4-addr Searches for all IPv4 addresses
Expand Down
23 changes: 22 additions & 1 deletion man/ronin-extract.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,27 @@ Extract common patterns in the given file(s) or input stream.
`-V`, `--version-number`
: Searches for all version numbers.

`--alpha`
: Searches for all alphabetic characters.

`--uppercase`
: Searches for all uppercase alphabetic characters.

`--lowercase`
: Searches for all lowercase alphabetic characters.

`--alpha-numeric`
: Searches for all alphanumeric characters.

`--hex`
: Searches for all hexadecimal characters.

`--uppercase-hex`
: Searches for all uppercase hexadecimal characters.

`--lowercase-hex`
: Searches for all lowercase hexadecimal characters.

`-w`, `--word`
: Searches for all words.

Expand Down Expand Up @@ -228,4 +249,4 @@ Postmodern <[email protected]>

## SEE ALSO

[ronin-grep](ronin-grep.1.md)
[ronin-grep](ronin-grep.1.md)
23 changes: 22 additions & 1 deletion man/ronin-grep.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,27 @@ Greps for common patterns in the given file(s) or input stream.
`-V`, `--version-number`
: Searches for all version numbers.

`--alpha`
: Searches for all alphabetic characters.

`--uppercase`
: Searches for all uppercase alphabetic characters.

`--lowercase`
: Searches for all lowercase alphabetic characters.

`--alpha-numeric`
: Searches for all alphanumeric characters.

`--hex`
: Searches for all hexadecimal characters.

`--uppercase-hex`
: Searches for all uppercase hexadecimal characters.

`--lowercase-hex`
: Searches for all lowercase hexadecimal characters.

`-w`, `--word`
: Searches for all words.

Expand Down Expand Up @@ -237,4 +258,4 @@ Postmodern <[email protected]>

## SEE ALSO

[ronin-extract](ronin-extract.1.md)
[ronin-extract](ronin-extract.1.md)

0 comments on commit 78f7532

Please sign in to comment.