Fix bugs
This commit is contained in:
parent
0ff114bcd6
commit
2be5ae3bab
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue