Merge pull request #128 from davehull/patch-1

Update modules/post/windows/gather/dumplinks.rb
unstable
dmaloney-r7 2012-01-25 10:51:32 -08:00
commit 4b814d7da2
1 changed files with 3 additions and 2 deletions

View File

@ -130,9 +130,10 @@ class Metasploit3 < Msf::Post
@data_out += get_showwnd(hdr)
@data_out += get_lnk_MAC(hdr)
if shell_item_id_list(hdr)
# advance the file & offset
offset += 0x4c
if shell_item_id_list(hdr)
lnk_file.sysseek(offset, ::IO::SEEK_SET)
record = lnk_file.sysread(2)
offset += record.unpack('v')[0] + 2