http://en.wikipedia.org/wiki/Daytime_Protocol
从维基百科上面我们可以知道,daytime服务被内建到了inetd或xinetd服务当中,所以当我们尝试寻找daytime的可执行程序的时候是找不见的。
我们下载一份xinetd源文件,可以在其中找到buildin.h/c文件,从这个文件当中我们找到对于xinetd了下面内建一些服务。
static const struct builtin_service builtin_services[] =
{
{ "echo", SOCK_STREAM, { stream_echo, FORK } },
{ "echo", SOCK_DGRAM, { dgram_echo, NO_FORK } },
{ "discard", SOCK_STREAM, { stream_discard, FORK } },
{ "discard", SOCK_DGRAM, { dgram_discard, NO_FORK } },
{ "time", SOCK_STREAM, { stream_time, NO_FORK } },
{ "time", SOCK_DGRAM, { dgram_time, NO_FORK } },
{ "daytime", SOCK_STREAM, { stream_daytime, NO_FORK } },
{ "daytime", SOCK_DGRAM, { dgram_daytime, NO_FORK } },
{ "chargen", SOCK_STREAM, { stream_chargen, FORK } },
{ "chargen", SOCK_DGRAM, { dgram_chargen, NO_FORK } },
{ "sensor", SOCK_STREAM, { stream_discard, NO_FORK } },
{ "sensor", SOCK_DGRAM, { dgram_discard, NO_FORK } },
{ "tcpmux", SOCK_STREAM, { tcpmux_handler, FORK } },
{ NULL, 0, { NULL, 0 } }
} ;