Sha256: 66f8bc1168fcfb78e13e304e57b05568b919bc77211a474ac52aed41cd016ec6

Contents?: true

Size: 438 Bytes

Versions: 744

Compression:

Stored size: 438 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'optparse'
require 'cgi'

opts = {}
OptionParser.new do |options|
  options.banner = "USAGE:
    #{$PROGRAM_NAME} [opts]
  "

  options.on('-pSTRING', '--payload=STRING', '<Required - String to Encode>') do |p|
    opts[:payload] = p
  end
end.parse!

if opts.empty?
  puts `#{$PROGRAM_NAME} --help`
  exit 1
end

payload = opts[:payload].to_s.scrub
puts CGI.escapeHTML(payload)

Version data entries

744 entries across 744 versions & 1 rubygems

Version Path
pwn-0.5.164 bin/pwn_char_html_entity_encoding
pwn-0.5.163 bin/pwn_char_html_entity_encoding
pwn-0.5.162 bin/pwn_char_html_entity_encoding
pwn-0.5.161 bin/pwn_char_html_entity_encoding
pwn-0.5.160 bin/pwn_char_html_entity_encoding
pwn-0.5.159 bin/pwn_char_html_entity_encoding
pwn-0.5.158 bin/pwn_char_html_entity_encoding
pwn-0.5.157 bin/pwn_char_html_entity_encoding
pwn-0.5.156 bin/pwn_char_html_entity_encoding
pwn-0.5.155 bin/pwn_char_html_entity_encoding
pwn-0.5.154 bin/pwn_char_html_entity_encoding
pwn-0.5.153 bin/pwn_char_html_entity_encoding
pwn-0.5.152 bin/pwn_char_html_entity_encoding
pwn-0.5.151 bin/pwn_char_html_entity_encoding
pwn-0.5.150 bin/pwn_char_html_entity_encoding
pwn-0.5.106 bin/pwn_char_html_entity_encoding
pwn-0.5.105 bin/pwn_char_html_entity_encoding
pwn-0.5.104 bin/pwn_char_html_entity_encoding
pwn-0.5.103 bin/pwn_char_html_entity_encoding
pwn-0.5.102 bin/pwn_char_html_entity_encoding