Nmap gkrellm-info NSE Script


This page contains detailed information about how to use the gkrellm-info NSE script. For list of all NSE scripts, visit the Nmap NSE Library.

Select:
Overview
Error Messages

Script Overview


Script source code: https://github.com/nmap/nmap/tree/master/scripts/gkrellm-info.nse
Script categories: discovery, safe
Target service / protocol: gkrellm, tcp
Target network port(s): 19150
List of CVEs: -

Script Description


The gkrellm-info.nse script queries a GKRellM service for monitoring information. A single round of collection is made, showing a snapshot of information at the time of the request.

Gkrellm-info NSE Script Arguments


The gkrellm-info.nse script does not have any arguments.

Gkrellm-info NSE Script Example Usage


Here's an example of how to use the gkrellm-info.nse script:

nmap -p 19150 <ip> --script gkrellm-info

Gkrellm-info NSE Script Example Output


Here's a sample output from the gkrellm-info.nse script:

PORT      STATE SERVICE
19150/tcp open  gkrellm
| gkrellm-info:
|   Hostname: ubu1110
|   System: Linux 3.0.0-12-generic
|   Version: gkrellmd 2.3.4
|   Uptime: 2 days, 1 hours, 50 minutes
|   Processes: Processes 354, Load 0.00, Users 3
|   Memory: Total 493M, Free 201M
|   Network
|     Interface  Received  Transmitted
|     eth0       704M      42M
|     lo         43M       43M
|   Mounts
|     Mount point                        Fs type                Size    Available
|     /                                  rootfs                 19654M  10238M
|     /dev                               devtmpfs               239M    239M
|     /run                               tmpfs                  99M     98M
|     /sys/fs/fuse/connections           fusectl                0M      0M
|     /                                  ext4                   19654M  10238M
|     /sys/kernel/debug                  debugfs                0M      0M
|     /sys/kernel/security               securityfs             0M      0M
|     /run/lock                          tmpfs                  5M      5M
|     /run/shm                           tmpfs                  247M    247M
|     /proc/sys/fs/binfmt_misc           binfmt_misc            0M      0M
|     /media/VBOXADDITIONS_4.1.12_77245  iso9660                49M     0M
|_    /home/paka/.gvfs                   fuse.gvfs-fuse-daemon  0M      0M

Gkrellm-info NSE Script Example XML Output


There is no sample XML output for this module. However, by providing the -oX <file> option, Nmap will produce a XML output and save it in the file.xml file.

Author


  • Patrik Karlsson

References


See Also


Visit Nmap NSE Library for more scripts.

The gkrellm-info.nse script may fail with the following error messages. Check for the possible causes by using the code snippets highlighted below found in the script source code. This can often times help in identifying the root cause of the problem.

Failed to connect to the server


Here is a relevant code snippet related to the "Failed to connect to the server" error message:

137:	action = function(host, port)
138:	  local socket = nmap.new_socket()
139:	  socket:set_timeout(5000)
140:	
141:	  if ( not(socket:connect(host, port)) ) then
142:	    return fail("Failed to connect to the server")
143:	  end
144:	
145:	  -- If there's an error we get a response back, and only then
146:	  local status, data = socket:receive_buf(match.pattern_limit("\n", 2048), false)
147:	  if( status and data ~= "<error>" ) then

An unknown error occurred, aborting ...


Here is a relevant code snippet related to the "An unknown error occurred, aborting ..." error message:

143:	  end
144:	
145:	  -- If there's an error we get a response back, and only then
146:	  local status, data = socket:receive_buf(match.pattern_limit("\n", 2048), false)
147:	  if( status and data ~= "<error>" ) then
148:	    return fail("An unknown error occurred, aborting ...")
149:	  elseif ( status ) then
150:	    status, data = socket:receive_buf(match.pattern_limit("\n", 2048), false)
151:	    if ( status ) then
152:	      return fail(data)
153:	    else

Failed to receive error message from server


Here is a relevant code snippet related to the "Failed to receive error message from server" error message:

149:	  elseif ( status ) then
150:	    status, data = socket:receive_buf(match.pattern_limit("\n", 2048), false)
151:	    if ( status ) then
152:	      return fail(data)
153:	    else
154:	      return fail("Failed to receive error message from server")
155:	    end
156:	  end
157:	
158:	  if ( not(socket:send("gkrellm 2.3.4\n")) ) then
159:	    return fail("Failed to send data to the server")

Failed to send data to the server


Here is a relevant code snippet related to the "Failed to send data to the server" error message:

154:	      return fail("Failed to receive error message from server")
155:	    end
156:	  end
157:	
158:	  if ( not(socket:send("gkrellm 2.3.4\n")) ) then
159:	    return fail("Failed to send data to the server")
160:	  end
161:	
162:	  local tags = {}
163:	  local status, tag = socket:receive_buf(match.pattern_limit("\n", 2048), false)
164:	  while(true) do

Version


This page has been created based on Nmap version 7.92.

Go back to menu.