summaryrefslogtreecommitdiff
blob: 6051d87b2e68815be711781be680a6439453c0fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
--- a/ChangeLog
+++ b/ChangeLog
@@ -23,7 +23,7 @@
    .conf in the user ~/.knocker subdirectory.
  
 13 May 2002
-  - --no-fency (-nf for short) option added. This switch tells knocker to show
+  - --no-fancy (-nf for short) option added. This switch tells knocker to show
     the output in a "polite" way. All the lines and stuffs shown in the default
 	mode, will not be displayed using this option.
   
--- a/src/knocker_args.c
+++ b/src/knocker_args.c
@@ -82,7 +82,7 @@
   fprintf (stdout, "Extra options:\n");
   fprintf (stdout, "      %s,  %s             quiet mode (no console output, logs to file)\n", QUIET_MODE_SHORT_OPT, QUIET_MODE_LONG_OPT);
   fprintf (stdout, "      %s, %s <logfile> log scan results to the specified file\n", ENABLE_LOGFILE_SHORT_OPT, ENABLE_LOGFILE_LONG_OPT);
-  fprintf (stdout, "      %s, %s          disable fency output\n", NO_FENCY_SHORT_OPT, NO_FENCY_LONG_OPT);
+  fprintf (stdout, "      %s, %s          disable fancy output\n", NO_FANCY_SHORT_OPT, NO_FANCY_LONG_OPT);
   fprintf (stdout, "      %s, %s         disable colored output\n", NO_COLORS_SHORT_OPT, NO_COLORS_LONG_OPT);
   fprintf (stdout, "\n");
   fprintf (stdout, "      %s              let you configure %s\n", CONFIGURE_LONG_OPT, PACKAGE);
@@ -111,7 +111,7 @@
   args->logfile = logfile;
   args->quiet = quiet;
   args->colors = colors;
-  args->fency = TRUE;           /* true by default */
+  args->fancy = TRUE;           /* true by default */
 
   return 0;
 }
@@ -189,10 +189,10 @@
             }
           return (0);           /* we should have all arguments here */
         }
-      else if ((!strcmp (argv[i], NO_FENCY_SHORT_OPT)) || (!strcmp (argv[i], NO_FENCY_LONG_OPT)))
+      else if ((!strcmp (argv[i], NO_FANCY_SHORT_OPT)) || (!strcmp (argv[i], NO_FANCY_LONG_OPT)))
         {
-          /* Disable fency output */
-          args->fency = FALSE;
+          /* Disable fancy output */
+          args->fancy = FALSE;
         }
       else if ((!strcmp (argv[i], NO_COLORS_SHORT_OPT)) || (!strcmp (argv[i], NO_COLORS_LONG_OPT)))
         {
--- a/src/knocker_output.c
+++ b/src/knocker_output.c
@@ -48,7 +48,7 @@
 {
   time_t timenow;
 
-  if (!knocker_args.fency)
+  if (!knocker_args.fancy)
     return 0;
 
 
@@ -104,7 +104,7 @@
 */
 void knocker_output_host_info (const char *hostname_str, const char *hostip_str)
 {
-  if (knocker_args.fency)
+  if (knocker_args.fancy)
     {
       knocker_term_color_fprintf (knocker_output_fp, " - ", KNOCKER_COLOR_1, KNOCKER_COLOR_1_ATTR);
       knocker_term_color_fprintf (knocker_output_fp, "hostname to scan: ", KNOCKER_COLOR_1, KNOCKER_COLOR_1_ATTR);
@@ -134,7 +134,7 @@
 */
 void knocker_output_resolve_error (char *hostname_str)
 {
-  if (knocker_args.fency)
+  if (knocker_args.fancy)
     {
       knocker_term_color_fprintf (knocker_output_fp, " - ", KNOCKER_COLOR_1, KNOCKER_COLOR_1_ATTR);
       knocker_term_color_fprintf (knocker_output_fp, "failed to resolve given hostname/IP: ", KNOCKER_COLOR_1, KNOCKER_COLOR_1_ATTR);
@@ -157,7 +157,7 @@
 */
 void knocker_output_ports_info (int sp, int ep)
 {
-  if (!knocker_args.fency)
+  if (!knocker_args.fancy)
     {
       knocker_term_color_fprintf (knocker_output_fp, "\n", KNOCKER_COLOR_2, KNOCKER_COLOR_2_ATTR);
       return;
@@ -183,7 +183,7 @@
 */
 void knocker_output_open_port (int port, char *service_str)
 {
-  if (knocker_args.fency)
+  if (knocker_args.fancy)
     {
       knocker_term_color_fprintf (knocker_output_fp, " -=[ ", KNOCKER_COLOR_1, KNOCKER_COLOR_1_ATTR);
       knocker_term_color_intfprintf (knocker_output_fp, port, KNOCKER_COLOR_2, KNOCKER_COLOR_2_ATTR);
@@ -216,7 +216,7 @@
 */
 void knocker_output_results (char *hostname_str, char *hostname_ip, int tot_ps,  int open_ps, char *secs)
 {
-  if (knocker_args.fency)
+  if (knocker_args.fancy)
     {
       knocker_term_color_fprintf (knocker_output_fp, "\n", KNOCKER_COLOR_2, KNOCKER_COLOR_2_ATTR);
       knocker_term_color_fprintf (knocker_output_fp, "+=- - - - - - - - - - - - - - - - - - - - - - - - - - - - ",
--- a/src/knocker_main.c
+++ b/src/knocker_main.c
@@ -75,7 +75,7 @@
 
   knocker_core_init_portscan_data (&pscan_data);
 
-  if (knocker_args.fency)
+  if (knocker_args.fancy)
     knocker_term_clear ();
 
   knocker_output_open ();
--- a/src/knocker_args.h
+++ b/src/knocker_args.h
@@ -53,9 +53,9 @@
 #define QUIET_MODE_SHORT_OPT "-q"
 #define QUIET_MODE_LONG_OPT "--quiet"
 
-  /* option to disable fency cool out put */
-#define NO_FENCY_SHORT_OPT "-nf"
-#define NO_FENCY_LONG_OPT  "--no-fency"
+  /* option to disable fancy cool out put */
+#define NO_FANCY_SHORT_OPT "-nf"
+#define NO_FANCY_LONG_OPT  "--no-fancy"
 
   /* option to disable colored out put */
 #define NO_COLORS_SHORT_OPT "-nc"
@@ -88,7 +88,7 @@
   int logfile;     /* log to file TRUE,FALSE */
   int quiet;       /* quiet mode TRUE,FALSE  */
   int colors;      /* no colors, TRUE,FALSE  */
-  int fency;       /* fency output, TRUE, FALSE */
+  int fancy;       /* fancy output, TRUE, FALSE */
   int win32_frontend;
 } knocker_args_t;
 
--- a/docs/knocker.1
+++ b/docs/knocker.1
@@ -38,8 +38,8 @@
 \fB\-lf\fr, \fB\-\-logfile <logfile>\fR
 log the results to a specified file.
 .TP
-\fB\-nf\fr, \fB\-\-no-fency\fR
-disable fency output
+\fB\-nf\fr, \fB\-\-no-fancy\fR
+disable fancy output
 .TP
 \fB\-nc\fr, \fB\-\-no-colors\fR
 disable colored output