Bug fix, thanks MC
git-svn-id: file:///home/svn/framework3/trunk@3865 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
667897ee25
commit
ef6bbb649c
|
@ -32,9 +32,11 @@ class UnicodeMixed < Msf::Encoder::Alphanum
|
|||
# being encoded.
|
||||
#
|
||||
def decoder_stub(state)
|
||||
reg = datastore['BufferRegister'] || raise RuntimeError, "Need BufferRegister"
|
||||
reg = datastore['BufferRegister']
|
||||
offset = datastore['BufferOffset'].to_i || 0
|
||||
|
||||
if (not reg)
|
||||
raise RuntimeError, "Need BufferRegister"
|
||||
end
|
||||
Rex::Encoder::Alpha2::UnicodeMixed::gen_decoder(reg, offset)
|
||||
end
|
||||
|
||||
|
|
|
@ -32,9 +32,11 @@ class UnicodeUpper < Msf::Encoder::Alphanum
|
|||
# being encoded.
|
||||
#
|
||||
def decoder_stub(state)
|
||||
reg = datastore['BufferRegister'] || raise RuntimeError, "Need BufferRegister"
|
||||
reg = datastore['BufferRegister']
|
||||
offset = datastore['BufferOffset'].to_i || 0
|
||||
|
||||
if (not reg)
|
||||
raise RuntimeError, "Need BufferRegister"
|
||||
end
|
||||
Rex::Encoder::Alpha2::UnicodeUpper::gen_decoder(reg, offset)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue