src/ssh-honeypot.c
/* usage() -- prints out usage instructions and exits the program
 */
- prints out usage instructions and exits the program
- prints out usage instructions and exits the program
void usage (const char *progname) {
  fprintf (stderr, "ssh-honeypot %s by %s\n\n", VERSION, AUTHOR);
  fprintf (stderr, "usage: %s [-?h -p <port> -l <file> -b <address> -r <file> -f <file>]\n", progname);
  fprintf (stderr, "\t-?/-h\t\t-- this help menu\n");
  fprintf (stderr, "\t-p <port>\t-- listen port\n");
  fprintf (stderr, "\t-b <address>\t-- IP address to bind to\n");
  fprintf (stderr, "\t-l <file>\t-- log file\n");
  fprintf (stderr, "\t-r <file>\t-- specify RSA key to use\n");
  fprintf (stderr, "\t-f <file>\t-- specify location to PID file\n");
  exit (EXIT_FAILURE);
}
void usage ( const char * progname ) { fprintf ( stderr , " \n \n " , VERSION , AUTHOR ) ; fprintf ( stderr , " \n " , progname ) ; fprintf ( stderr , " \t \t \t \n " ) ; fprintf ( stderr , " \t \t \n " ) ; fprintf ( stderr , " \t \t \n " ) ; fprintf ( stderr , " \t \t \n " ) ; fprintf ( stderr , " \t \t \n " ) ; fprintf ( stderr , " \t \t \n " ) ; exit ( EXIT_FAILURE ) ; }
usage() -- prints out usage instructions and exits the program
usage () -- prints out usage instructions and exits the program