/* * * ftelnetd - fake telnet daemon * * usage.c * Usage/help output for you. :) * * Tue Dec 12 22:47:31 CET 2006 * * by Levent Kayan * levent[at]corehack[dot]org * */ #include #include void usage(char *p_name) { printf("ftelnetd - http://www.corehack.org/\n"); printf("-----------------------------------\n"); printf("usage: %s [options]\n", p_name); printf("options:\n"); printf("\t-f - fake mode, which telnetd to fake? 5 for list\n"); printf("\t-p - port to bind the server (default 23)\n"); printf("\t-g - group id to drop the server to (default 0)\n"); printf("\t-u - user id to drop the server to (default 0)\n"); printf("\t-l - logfile name (default ftelnetd.log)\n"); printf("\t-d - daemonise ftelnetd\n"); printf("\t-v - prints ftelnetd version\n"); printf("\t-h - prints this help :)\n"); exit(EXIT_SUCCESS); } /* EOF */