From b189bc31ec94c7d8d8bebcb0fc99ebdc42211e1a Mon Sep 17 00:00:00 2001 From: fyodor Date: Thu, 23 Jun 2011 06:19:48 +0000 Subject: [PATCH] slightly enhance a couple sip softmatches by allowing parenthesis in the Server header value. Patch sent by Rainer Giedat --- nmap-service-probes | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nmap-service-probes b/nmap-service-probes index b2a280c21..e91d72767 100644 --- a/nmap-service-probes +++ b/nmap-service-probes @@ -9186,7 +9186,7 @@ match irc-proxy m|^Login failed\. Disconnecting\.\r\n$| p/psyBNC/ i/Login Failed match zabbix m|^OK$| p/Zabbix Monitoring System/ -softmatch sip m|^SIP/2\.0 ([-\w\s.]+)\r\n.*Server: ([-\w\s/_.]+)\r\n|s p/$2/ i/Status: $1/ +softmatch sip m|^SIP/2\.0 ([-\w\s.]+)\r\n.*Server: ([-\w\s/_\.\(\)]+)\r\n|s p/$2/ i/Status: $1/ softmatch sip m|^SIP/2\.0 ([-\w\s.]+)\r\n| i/SIP end point; Status: $1/ ##############################NEXT PROBE############################## @@ -9208,7 +9208,7 @@ match sip-proxy m|^SIP/2\.0 .*\r\nUser-Agent: Asterisk PBX\r\n|s p/Asterisk PBX/ match sip-proxy m|^SIP/2\.0 .*\r\nServer: OpenSIPS \(([\w\d\.-]+) \(([\d\w/]+)\)\)|s p/OpenSIPS SIP Server/ v/$1/ i/$2/ match sip-proxy m|^SIP/2\.0 200 OK\r\n.*\r\nUser-Agent: ComdasysB2BUA([\w._-]+)\r\n|s p/Comdasys SIP Server/ v/$1/ -softmatch sip m|^SIP/2\.0 ([-\w\s.]+)\r\n.*Server: ([-\w\s/_.]+)\r\n|s p/$2/ i/Status: $1/ +softmatch sip m|^SIP/2\.0 ([-\w\s.]+)\r\n.*Server: ([-\w\s/_\.\(\)]+)\r\n|s p/$2/ i/Status: $1/ softmatch sip m|^SIP/2\.0 ([-\w\s.]+)\r\n| i/SIP end point; Status: $1/ ##############################NEXT PROBE##############################