Make sure that table gets updated

git-svn-id: file:///home/svn/incoming/trunk@3611 4d416f70-5f16-0410-b530-b9f4589650da
unstable
pusscat 2006-04-24 15:01:25 +00:00
parent 4c92672cb3
commit 5b8ceaf72f
1 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@ module Rex
module Encoder
class NonAlpha
def NonAlpha.gen_decoder()
decoder =
@ -39,7 +40,7 @@ class NonAlpha
block = 0x7B
end
return block.chr
return [block.chr, table, tablelen]
end
def NonAlpha.encode(buf)
@ -50,7 +51,7 @@ class NonAlpha
buf.each_byte {
|block|
newchar = encode_byte(block.unpack('C')[0], table, tablelen)
newchar, table, tablelen = encode_byte(block.unpack('C')[0], table, tablelen)
nonascii += newchar
}
encoded.gsub!(/A/, tablelen)