dont mangle offset 0x88 if using sub_method

git-svn-id: file:///home/svn/framework3/trunk@11174 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2010-11-30 04:53:43 +00:00
parent 85113deb04
commit c5c2b37c8b
1 changed files with 6 additions and 2 deletions

View File

@ -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