Nmap Development mailing list archives

[NSE] docker-version - bugfix / added output | version detection


From: Tom Sellers <nmap () fadedcode net>
Date: Wed, 6 Jul 2016 19:55:44 -0500

FYI,

  I've made a few changes to docker-version and version detection for docker


1. Commit r35957 fixed a bug with a variable mix-up that resulted in the version value in the service name:


Original
###############################################################
Scanned at 2016-07-06 12:47:46 CDT for 240s
PORT     STATE SERVICE REASON         VERSION
2375/tcp open  1.11.2  syn-ack ttl 64 Docker
Final times for host: srtt: 810 rttvar: 3162  to: 100000


New
###############################################################
Scanned at 2016-07-06 12:57:17 CDT for 239s
PORT     STATE SERVICE REASON         VERSION
2375/tcp open  docker  syn-ack ttl 64 Docker 1.11.2
Final times for host: srtt: 1081 rttvar: 3261  to: 100000




2. Commit r35959 added output to the script.  This data was already available as a result of the script's single 
request to the target.

Scanned at 2016-07-06 18:44:39 CDT for 1s
PORT     STATE SERVICE REASON
2375/tcp open  docker  syn-ack ttl 64
| docker-version:
|   Arch: amd64
|   BuildTime: 2016-06-01T21:47:50.269346868+00:00
|   GitCommit: b9f10c9
|   GoVersion: go1.5.4
|   Os: linux
|   Version: 1.11.2
|   KernelVersion: 3.13.0-91-generic
|_  ApiVersion: 1.23
Final times for host: srtt: 880 rttvar: 3586  to: 100000


3. Commits r35960 and r35956 adjusted matchlines to improve docker detection. The product name and information strings 
are inconsistent between standard version detection and docker-version.  I will
revisit this after I finish adding another docker related script or two.


Tom


_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


Current thread: