From 6274868dee0ff12a5542f5dbfe4c18c6c64ca9c8 Mon Sep 17 00:00:00 2001 From: paulino Date: Fri, 5 May 2017 00:03:31 +0000 Subject: [PATCH] Renames memcached probe and adds a new match for Apache ZooKeeper --- CHANGELOG | 3 +++ nmap-service-probes | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 5aa06262f..0e54dfeaa 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,8 @@ # Nmap Changelog ($Id$); -*-text-*- +o Extended Memcached service probe and added match for Apache ZooKeeper. + [Paulino Calderon] + o [NSE] New script vmware-version queries VMWare SOAP API for version and product information. Submitted in 2011, this was mistakenly turned into a service probe that was unable to elicit any matches. [Aleksey Tyurin] diff --git a/nmap-service-probes b/nmap-service-probes index 27ed165ca..112ab0b6e 100644 --- a/nmap-service-probes +++ b/nmap-service-probes @@ -14846,13 +14846,13 @@ match stomp m|^ERROR\nmessage:Illegal command\ncontent-type:text/plain\nversion: # match ipds m|^%%\[ Error: syntaxerror; Offending Command:|s p/IPDS Service/ d/printer/ ##############################NEXT PROBE############################## -# memcache, text mode protocol -Probe TCP Memcache q|stats\r\n| +# Sends string 'stats' and matches memcached and zookeeper +Probe TCP StatsRequest q|stats\r\n| rarity 8 -ports 11211 +ports 2181,11211 match memcached m|^STAT pid (\d+)\r\nSTAT uptime (\d+)\r\n.*?STAT version ([\w_.-]+)\r\n.*?STAT curr_items (\d+)\r\nSTAT total_items (\d+)\r\nSTAT bytes (\d+)\r\n|s p/Memcached/ v/$3/ i/PID $1; uptime $2 seconds; curr items: $4; total items: $5; bytes cached: $6/ cpe:/a:memcached:memcached:$3/ match memcached m|^STAT pid (\d+)\r\nSTAT uptime (\d+)\r\nSTAT time \d+\r\nSTAT version ([.\d]+)\r\n|s p/Memcached/ v/$3/ i/PID $1; uptime $2 seconds/ cpe:/a:memcached:memcached:$3/ - +match zookeeper m|^Zookeeper version: ([\w.-]+), built on ([\w./]+)| p/Zookeeper/ v/$1/ i/Built on $2/ cpe:/a:zookeeper:zookeeper:$1/ ##############################NEXT PROBE############################## # Beast Trojan v2