encoder changes

git-svn-id: file:///home/svn/incoming/trunk@3394 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Miller 2006-01-16 22:34:22 +00:00
parent 536e1783c0
commit 788b3ddeed
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ module Alpha2
class UnicodeMixed < Generic
def self.gen_base(max)
max = max / 0x10
max = max >> 4
(rand(max) * 0x10)
end

View File

@ -10,7 +10,7 @@ class UnicodeUpper < Generic
@@accepted_chars = ('B' .. 'Z').to_a + ('0' .. '9').to_a
def self.gen_base(max)
max = max / 0x10
max = max >> 4
(rand(max) * 0x10)
end
@ -51,7 +51,7 @@ class UnicodeUpper < Generic
"TA" + # push esp, NOP
"XA" + # pop eax, NOP
"ZA" + # pop edx, NOP
"PA" + # push eax, NOP
"PU" + # push eax, NOP
"3" + # xor eax, [eax]
"QA" + # push ecx, NOP
"DA" + # inc esp, NOP