class Ronin::CLI::Commands::Entropy
Filters lines by their entropy.
## Usage
ronin entropy [options] [FILE ...]
## Options
-e, --entropy DEC Minimum required entropy (Default: 4.0) -h, --help Print help information
## Arguments
[FILE ...] Optional file(s) to process
Public Instance Methods
process_input(input)
click to toggle source
Filters the input stream for high-entropy strings.
@param [IO, StringIO] input
The input stream to grep.
# File lib/ronin/cli/commands/entropy.rb, line 62 def process_input(input) entropy = options[:entropy] input.each_line(chomp: true) do |line| if Support::Text::Entropy.calculate(line) > entropy puts line end end end