default badchars to payload_badchars

git-svn-id: file:///home/svn/framework3/trunk@10149 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2010-08-25 20:54:20 +00:00
parent 34eb75af73
commit c473d20927
1 changed files with 3 additions and 1 deletions

View File

@ -27,7 +27,7 @@ module Exploit::Omelet
#
# Generates an omelet hunter stub and eggs
#
def generate_omelet(payload, badchars = '', opts = {})
def generate_omelet(payload, badchars = nil, opts = {})
# Prefer the target's platform/architecture information, but use
# the module's if no target specific information exists
los = target_platform
@ -43,6 +43,8 @@ module Exploit::Omelet
raise RuntimeError, "No platform restrictions were specified -- cannot select omelet hunter"
end
badchars ||= payload_badchars
omelet = Rex::Exploitation::Omelet.new(los, larch)
scrambledeggs = omelet.generate(payload, badchars, opts)