File: test.sh

package info (click to toggle)
portsentry 2.0.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 1,396 kB
  • sloc: ansic: 6,473; sh: 916; perl: 18; makefile: 5
file content (19 lines) | stat: -rwxr-xr-x 410 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
. ./testlib.sh

runNmap 11 T

confirmStdoutScanMessage tcp
confirmHistoryFileMessage tcp

runNmap 11 T
confirmOccurrenceStdout 2 "^Scan from: \[127\.0\.0\.1\] (127\.0\.0\.1) protocol: \[TCP\] port: \[11\]"

runNmap 11 U
confirmStdoutScanMessage udp
confirmHistoryFileMessage udp

runNmap 11 U
confirmOccurrenceStdout 2 "^Scan from: \[127\.0\.0\.1\] (127\.0\.0\.1) protocol: \[UDP\] port: \[11\]"

ok