This commit is contained in:
sinn3r 2015-03-21 12:14:00 -05:00
parent 0ff114bcd6
commit 2be5ae3bab
1 changed files with 5 additions and 5 deletions

View File

@ -20,10 +20,6 @@ module Egghunter
opt.separator ''
opt.separator 'Specific options:'
options[:badchars] = ''
options[:platform] = 'windows'
options[:arch] = ARCH_X86 # 'x86'
opt.on('-f', '--format <String>', "See --list-formats for a list of supported output formats") do |v|
options[:format] = v
end
@ -47,7 +43,7 @@ module Egghunter
opt.on('--forward', "(Optional) To search forward") do |v|
# Do not change this key. This should matching the one in Rex::Exploitation::Egghunter
options[:startreg] = true
options[:searchforward] = true
end
opt.on('--depreg <String>', "(Optional) The DEP register") do |v|
@ -99,6 +95,10 @@ module Egghunter
raise OptionParser::InvalidOption, "--depsize must be a Fixnum"
end
options[:badchars] = '' unless options[:badchars]
options[:platform] = 'windows' unless options[:platform]
options[:arch] = ARCH_X86 unless options[:arch]
options
end
end