72 lines
3.1 KiB
Plaintext
72 lines
3.1 KiB
Plaintext
$OpenBSD: patch-usage_c,v 1.1 2004/01/06 02:14:37 espie Exp $
|
|
--- usage.c.orig 2004-01-06 03:10:03.000000000 +0100
|
|
+++ usage.c 2004-01-06 03:11:03.000000000 +0100
|
|
@@ -40,38 +40,38 @@ usage(show_macros)
|
|
{
|
|
|
|
if (show_macros)
|
|
- (void)printf("Macros:
|
|
-(Valid macros for -f option)
|
|
- %%s insert space %%h insert hostname
|
|
- %%n insert newline %%c insert double quotes
|
|
- %%t insert tab %%T insert total ip addresses
|
|
- %%i insert ip address %%d exec program in background mode\n\n");
|
|
+ (void)printf("Macros:\n"
|
|
+"(Valid macros for -f option)\n"
|
|
+" %%s insert space %%h insert hostname\n"
|
|
+" %%n insert newline %%c insert double quotes\n"
|
|
+" %%t insert tab %%T insert total ip addresses\n"
|
|
+" %%i insert ip address %%d exec program in background mode\n\n");
|
|
else {
|
|
|
|
(void)printf("\n%s", TITLE);
|
|
- (void)printf("
|
|
-Usage: plushs [-acDhmTv] [-f format] [-l ip-file] [-o logfile]
|
|
- [-P plugin-id/ids] [-s pattern] [-t timeout] [-w wait]
|
|
- [-x patterns-file] ip-address or ip-address-range
|
|
-
|
|
-Options:
|
|
- -a Show hostname aliasses.
|
|
- -c Turn off color.
|
|
- -D Run in daemon mode.
|
|
- -f format Execute <format> string when a match is found.
|
|
- -h Print this help.
|
|
- -l <ip-file> Scan ip address or ip addresses range from file <ip-file>.
|
|
- -m Like -f option, for -l option.
|
|
- -o <logfile> Logs output to <logfile>.
|
|
- -P <pid> Run <pid> plugin for each ip address.
|
|
- -t <timeout> Set timeout.
|
|
- -T Use TCP for queries (UDP will be used by default).
|
|
- -v Verbose mode.
|
|
- -w <wait> Wait <wait> seconds between each hostname search.
|
|
- -s <pattern> Search <pattern> in the hostname and output to a logfile.
|
|
- -x <patfile> Extract patterns from file and output to a logfile.
|
|
-
|
|
-<ip ranges> ejem: 192.168.1-255.1-255\n\n");
|
|
+ (void)printf("\n"
|
|
+"Usage: plushs [-acDhmTv] [-f format] [-l ip-file] [-o logfile]\n"
|
|
+" [-P plugin-id/ids] [-s pattern] [-t timeout] [-w wait]\n"
|
|
+" [-x patterns-file] ip-address or ip-address-range\n"
|
|
+"\n"
|
|
+"Options:\n"
|
|
+" -a Show hostname aliasses.\n"
|
|
+" -c Turn off color.\n"
|
|
+" -D Run in daemon mode.\n"
|
|
+" -f format Execute <format> string when a match is found.\n"
|
|
+" -h Print this help.\n"
|
|
+" -l <ip-file> Scan ip address or ip addresses range from file <ip-file>.\n"
|
|
+" -m Like -f option, for -l option.\n"
|
|
+" -o <logfile> Logs output to <logfile>.\n"
|
|
+" -P <pid> Run <pid> plugin for each ip address.\n"
|
|
+" -t <timeout> Set timeout.\n"
|
|
+" -T Use TCP for queries (UDP will be used by default).\n"
|
|
+" -v Verbose mode.\n"
|
|
+" -w <wait> Wait <wait> seconds between each hostname search.\n"
|
|
+" -s <pattern> Search <pattern> in the hostname and output to a logfile.\n"
|
|
+" -x <patfile> Extract patterns from file and output to a logfile.\n"
|
|
+"\n"
|
|
+"<ip ranges> ejem: 192.168.1-255.1-255\n\n");
|
|
}
|
|
|
|
exit(0);
|