summaryrefslogtreecommitdiffstats
path: root/web/attachments/95011-check_nmap.patch
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/95011-check_nmap.patch')
-rw-r--r--web/attachments/95011-check_nmap.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/web/attachments/95011-check_nmap.patch b/web/attachments/95011-check_nmap.patch
new file mode 100644
index 0000000..3e41add
--- /dev/null
+++ b/web/attachments/95011-check_nmap.patch
@@ -0,0 +1,29 @@
1--- ./contrib/check_nmap.py 2002-02-28 01:42:54.000000000 -0500
2+++ ./contrib/check_nmap.py 2004-07-23 16:03:17.000000000 -0400
3@@ -8,7 +8,7 @@
4 # License: GPL
5 # Copyright (c) 2000 Jacob Lundqvist (jaclu@galdrion.com)
6 #
7-_version_ = '1.20'
8+_version_ = '1.21'
9 #
10 #
11 # Description:
12@@ -25,6 +25,7 @@
13 #
14 # History
15 # -------
16+# 1.21 2004-07-23 rippeld@hillsboroughcounty.org Updated parsing of nmap output to correctly identify closed ports
17 # 1.20 2000-07-15 jaclu Updated params to correctly comply to plugin-standard
18 # moved support classes to utils.py
19 # 1.16 2000-07-14 jaclu made options and return codes more compatible with
20@@ -276,7 +277,8 @@
21 if string.find(s,'/')<1:
22 continue
23 p=string.split(s,'/')[0]
24- self.active_ports.append(int(p))
25+ if string.find(l,'open')>1:
26+ self.active_ports.append(int(p))
27 except:
28 # failure due to strange output...
29 pass