Skip to content

Commit

Permalink
Remove Hex2bin to fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
KINGSABRI committed Feb 2, 2013
1 parent 8e95816 commit a88955f
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions bofk-cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
OUT = "#{APP_ROOT}/out"


#require 'pry'
require "#{GEMS}/colorize-0.5.8/lib/colorize"
require "#{GEMS}/colorize-0.5.8/lib/colorize.rb"
require 'pattern'
require 'hex2lendian'
require 'hex2bin'
Expand Down Expand Up @@ -43,17 +42,17 @@
options[:hex2endl] = h2le
end
#--> Hex to bin
opts.on('-b', '--hex2bin HEX_STRING', "Convert Hex shellcode to binary file.") do |h2b|
options[:hex2bin] = h2b
end
#opts.on('-b', '--hex2bin HEX_STRING', "Convert Hex shellcode to binary file.") do |h2b|
# options[:hex2bin] = h2b
#end
#--> bin to Hex
opts.on('-x', '--bin2hex BINARY_FILE', "Convert binary shellcode to Hex string.") do |bin2hex|
options[:bin2hex] = bin2hex
end
#--> Version
opts.on('-V', '--version', 'Display BufferOver flow Kit version.') do |v|
options[:version] = v
end
--> Version
#opts.on('-V', '--version', 'Display Buffer Overflow Kit version.') do |v|
# options[:version] = v
#end
#--> Help screen
opts.banner = "\nUsage:".underline +
" ruby bofk-cli.rb {OPTIONS} ARGUMENT\n" +
Expand Down

0 comments on commit a88955f

Please sign in to comment.