dont mangle offset 0x88 if using sub_method
git-svn-id: file:///home/svn/framework3/trunk@11174 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
85113deb04
commit
c5c2b37c8b
|
@ -429,7 +429,9 @@ require 'digest/sha1'
|
|||
raise RuntimeError, "Invalid Win32 PE Service EXE template: missing \"SERVICENAME\" tag" if not bo
|
||||
pe[bo, 11] = [name].pack('a11')
|
||||
|
||||
pe[136, 4] = [rand(0x100000000)].pack('V')
|
||||
if not opts[:sub_method]
|
||||
pe[136, 4] = [rand(0x100000000)].pack('V')
|
||||
end
|
||||
|
||||
return pe
|
||||
end
|
||||
|
@ -452,7 +454,9 @@ require 'digest/sha1'
|
|||
raise RuntimeError, "Invalid Win64 PE Service EXE template: missing \"SERVICENAME\" tag" if not bo
|
||||
pe[bo, 11] = [name].pack('a11')
|
||||
|
||||
pe[136, 4] = [rand(0x100000000)].pack('V')
|
||||
if not opts[:sub_method]
|
||||
pe[136, 4] = [rand(0x100000000)].pack('V')
|
||||
end
|
||||
|
||||
return pe
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue