Script nfs-statfs

Script types:
Categories: discovery, safe
Download: https://svn.nmap.org/nmap/scripts/nfs-statfs.nse

Script Summary

Retrieves disk space statistics and information from a remote NFS share. The output is intended to resemble the output of df.

The script will provide pathconf information of the remote NFS if the version used is NFSv3.

Script Arguments

nfs-statfs.human

If set to 1 or true, shows file sizes in a human readable format with suffixes like KB and MB.

mount.version, nfs.version, rpc.protocol

See the documentation for the rpc library.

Example Usage

nmap -p 111 --script=nfs-statfs <target>
nmap -sV --script=nfs-statfs <target>

Script Output

PORT    STATE SERVICE
| nfs-statfs:
|   Filesystem           1K-blocks  Used     Available  Use%  Blocksize
|   /mnt/nfs/files       5542276    2732012  2528728    52%   4096
|_  /mnt/nfs/opensource  5534416    620640   4632644    12%   4096

Requires


Authors:

  • Patrik Karlsson
  • Djalal Harouni

License: Same as Nmap--See https://nmap.org/book/man-legal.html