From 72a3e49fbb104d00e648f64f9e8082972867d891 Mon Sep 17 00:00:00 2001 From: Florian Gaultier Date: Sun, 17 Nov 2013 19:01:57 +0100 Subject: [PATCH] fix typo --- lib/msf/util/exe.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/util/exe.rb b/lib/msf/util/exe.rb index 485b1ef217..284ed99278 100644 --- a/lib/msf/util/exe.rb +++ b/lib/msf/util/exe.rb @@ -440,7 +440,7 @@ require 'msf/core/exe/segment_injector' virtualAddress = sec[1][virtualAddress_offset,0x4].unpack('L')[0] sizeOfRawData = sec[1][sizeOfRawData_offset,0x4].unpack('L')[0] characteristics = sec[1][characteristics_offset,0x4].unpack('L')[0] - if exe.hdr.opt.AddressOfEntryPoint >= virtualAddress && exe.hdr.opt.AddressOfEntryPoint < virtualAddresssizeOfRawData + if exe.hdr.opt.AddressOfEntryPoint >= virtualAddress && exe.hdr.opt.AddressOfEntryPoint < virtualAddress+sizeOfRawData #put this section writable characteristics|=0x80000000 newcharacteristics = [characteristics].pack('L')