Method: Rex::Text.charset_exclude

Defined in:
lib/rex/text.rb

.charset_exclude(keepers) ⇒ String

Returns all chars that are not in the supplied set



1718
1719
1720
1721
# File 'lib/rex/text.rb', line 1718

def self.charset_exclude(keepers)
  excluded_bytes = [*(0..255)] - keepers.unpack("C*")
  excluded_bytes.pack("C*")
end