Permalink
Browse files

minor --stdin usage text addition

  • Loading branch information...
1 parent 25edc09 commit 4f0a212eccea87abe90a8a62f23569b2f74e30fe @mrash committed Jul 27, 2013
Showing with 9 additions and 1 deletion.
  1. +4 −1 psad
  2. +5 −0 psad.8
View
5 psad
@@ -7387,11 +7387,12 @@ sub analysis_mode() {
push @local_nets, $net;
}
- print "[+] Entering analysis mode. Parsing $fw_data_file\n";
my $fh = '';
if ($pkts_from_stdin) {
+ print "[+] Entering analysis mode. Parsing STDIN\n";
$fh = *STDIN;
} else {
+ print "[+] Entering analysis mode. Parsing $fw_data_file\n";
open MSGS, "< $fw_data_file" or die "[*] Could not open ",
"$fw_data_file: $!";
$fh = *MSGS;
@@ -10999,6 +11000,8 @@ Usage: psad [options]
Options:
-A, --Analyze-msgs - Analyze iptables logfile and exit.
+ --stdin - In --Analyze-msgs mode, acquire iptables
+ log data from STDIN.
-e, --email-analysis - Send emails for scans detected in
offline analysis mode.
-m, --messages-file <file> - Specify the path to the iptables logfile
View
5 psad.8
@@ -168,6 +168,11 @@ option), and print the packet fields on STDOUT in comma-separate value
format. This is useful for graphing iptables log data with AfterGlow
(see http://afterglow.sourceforge.net/index.html).
.TP
+.BR \-\^\-stdin
+Acquire iptables log data from STDIN instead of the default
+.I /var/log/messages
+file.
+.TP
.BR \-\^\-CSV-fields\ \<tokens>
Instruct
.B psad

0 comments on commit 4f0a212

Please sign in to comment.