diff options
-rw-r--r-- | contrib/check_nmap.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/check_nmap.py b/contrib/check_nmap.py index 4f53406..07f6d7f 100644 --- a/contrib/check_nmap.py +++ b/contrib/check_nmap.py | |||
@@ -8,7 +8,7 @@ | |||
8 | # License: GPL | 8 | # License: GPL |
9 | # Copyright (c) 2000 Jacob Lundqvist (jaclu@galdrion.com) | 9 | # Copyright (c) 2000 Jacob Lundqvist (jaclu@galdrion.com) |
10 | # | 10 | # |
11 | _version_ = '1.20' | 11 | _version_ = '1.21' |
12 | # | 12 | # |
13 | # | 13 | # |
14 | # Description: | 14 | # Description: |
@@ -25,6 +25,7 @@ _version_ = '1.20' | |||
25 | # | 25 | # |
26 | # History | 26 | # History |
27 | # ------- | 27 | # ------- |
28 | # 1.21 2004-07-23 rippeld@hillsboroughcounty.org Updated parsing of nmap output to correctly identify closed ports | ||
28 | # 1.20 2000-07-15 jaclu Updated params to correctly comply to plugin-standard | 29 | # 1.20 2000-07-15 jaclu Updated params to correctly comply to plugin-standard |
29 | # moved support classes to utils.py | 30 | # moved support classes to utils.py |
30 | # 1.16 2000-07-14 jaclu made options and return codes more compatible with | 31 | # 1.16 2000-07-14 jaclu made options and return codes more compatible with |
@@ -276,7 +277,8 @@ class CheckNmap: | |||
276 | if string.find(s,'/')<1: | 277 | if string.find(s,'/')<1: |
277 | continue | 278 | continue |
278 | p=string.split(s,'/')[0] | 279 | p=string.split(s,'/')[0] |
279 | self.active_ports.append(int(p)) | 280 | if string.find(l,'open')>1: |
281 | self.active_ports.append(int(p)) | ||
280 | except: | 282 | except: |
281 | # failure due to strange output... | 283 | # failure due to strange output... |
282 | pass | 284 | pass |