minor fixup

git-svn-id: file:///home/svn/incoming/trunk@3317 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Miller 2006-01-06 09:03:34 +00:00
parent d1e8d89f07
commit 90175dd5ce
4 changed files with 8 additions and 8 deletions

View File

@ -31,8 +31,8 @@ class AlphaMixed < Msf::Encoder::Alphanum
# being encoded.
#
def decoder_stub(state)
reg = datastore['BufferRegister'] || 'EAX'
offset = datastore['BufferOffset'] || 0
reg = datastore['BufferRegister'] || 'EAX'
offset = datastore['BufferOffset'].to_i || 0
Rex::Encoder::Alpha2::AlphaMixed::gen_decoder(reg, offset)
end

View File

@ -31,8 +31,8 @@ class AlphaUpper < Msf::Encoder::Alphanum
# being encoded.
#
def decoder_stub(state)
reg = datastore['BufferRegister'] || 'EAX'
offset = datastore['BufferOffset'] || 0
reg = datastore['BufferRegister'] || 'EAX'
offset = datastore['BufferOffset'].to_i || 0
Rex::Encoder::Alpha2::AlphaUpper::gen_decoder(reg, offset)
end

View File

@ -31,8 +31,8 @@ class UnicodeMixed < Msf::Encoder::Alphanum
# being encoded.
#
def decoder_stub(state)
reg = datastore['BufferRegister'] || 'EAX'
offset = datastore['BufferOffset'] || 0
reg = datastore['BufferRegister'] || 'EAX'
offset = datastore['BufferOffset'].to_i || 0
Rex::Encoder::Alpha2::UnicodeMixed::gen_decoder(reg, offset)
end

View File

@ -31,8 +31,8 @@ class UnicodeUpper < Msf::Encoder::Alphanum
# being encoded.
#
def decoder_stub(state)
reg = datastore['BufferRegister'] || 'EAX'
offset = datastore['BufferOffset'] || 0
reg = datastore['BufferRegister'] || 'EAX'
offset = datastore['BufferOffset'].to_i || 0
Rex::Encoder::Alpha2::UnicodeUpper::gen_decoder(reg, offset)
end