Skip to content

Commit 8b251b0

Browse files
author
jvazquez-r7
committed
initializing msghdr a little better
1 parent 16c5df4 commit 8b251b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/exploits/linux/local/udev_netlink.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ def exploit
164164
sa.nl_pid = #{netlink_pid};
165165
sa.nl_groups = 0;
166166
167+
memset(&msg, 0x00, sizeof(struct msghdr));
167168
msg.msg_name = (void *)&sa;
168169
msg.msg_namelen = sizeof(sa);
169170
msg.msg_iov = &iov;

0 commit comments

Comments
 (0)