Skip to content

Commit

Permalink
Added --interface tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mrash committed Apr 3, 2012
1 parent 109bacf commit ab25665
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions test/test-psad.pl
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,43 @@
'exec_err' => $NO,
'fatal' => $NO
},
{
'category' => 'operations',
'detail' => 'IPv4 SYN scan --interface eth1',
'err_msg' => 'did not detect SYN scan',
'positive_output_matches' => [qr/Top\s\d+\sattackers/i,
qr/scanned\sports.*?1000\-1500\b/i,
qr/Source\sOS/i, qr/BACKDOOR/i,
qr/IP\sstatus/i,
qr/192\.168\.10\.55/],
'match_all' => $MATCH_ALL_RE,
'function' => \&generic_exec,
'cmdline' => "$psad_def --interface eth1 -A -m $scans_dir/" .
"$fw_type/$syn_scan_file -c $default_conf",
'firewalls' => {
'iptables' => ''
},
'exec_err' => $NO,
'fatal' => $NO
},
{
'category' => 'operations',
'detail' => 'IPv4 SYN scan --interface badintf',
'err_msg' => 'logged SYN scan',
'negative_output_matches' => [
qr/scanned\sports.*?1000\-1500\b/i,
qr/Source\sOS/i, qr/BACKDOOR/i,
qr/\b192\.168\.10\.55/],
'match_all' => $MATCH_ALL_RE,
'function' => \&generic_exec,
'cmdline' => "$psad_def --interface badintf -A -m $scans_dir/" .
"$fw_type/$syn_scan_file -c $default_conf",
'firewalls' => {
'iptables' => ''
},
'exec_err' => $NO,
'fatal' => $NO
},

{
'category' => 'operations',
Expand Down

0 comments on commit ab25665

Please sign in to comment.