Nmap afp-showmount NSE Script


This page contains detailed information about how to use the afp-showmount 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/afp-showmount.nse
Script categories: discovery, safe
Target service / protocol: tcp
Target network port(s): 548
List of CVEs: -

Script Description


The afp-showmount.nse script shows AFP shares and ACLs.

Afp-showmount NSE Script Arguments


This is a full list of arguments supported by the afp-showmount.nse script:

afp.password

The password to use for authentication.

afp.username

The username to use for authentication.

- - -
To use these script arguments, add them to the Nmap command line using the --script-args arg1=value,[arg2=value,..] syntax. For example:

nmap --script=afp-showmount --script-args afp.password=value,afp.username=value <target>

Afp-showmount NSE Script Example Usage


Here's an example of how to use the afp-showmount.nse script:

nmap --script=afp-showmount <target>

Afp-showmount NSE Script Example Output


Here's a sample output from the afp-showmount.nse script:

PORT    STATE SERVICE
548/tcp open  afp
| afp-showmount:
|   Yoda's Public Folder
|     Owner: Search,Read,Write
|     Group: Search,Read
|     Everyone: Search,Read
|     User: Search,Read
|   Vader's Public Folder
|     Owner: Search,Read,Write
|     Group: Search,Read
|     Everyone: Search,Read
|     User: Search,Read
|_    Options: IsOwner

Afp-showmount 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


Related NSE scripts to the afp-showmount.nse script:

Visit Nmap NSE Library for more scripts.

The afp-showmount.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.

Login failed


Here is a relevant code snippet related to the "Login failed" error message:

71:	    else
72:	      status, response = afpHelper:Login()
73:	    end
74:	
75:	    if ( not status ) then
76:	      stdnse.debug1("Login failed")
77:	      stdnse.debug3("Login error: %s", response)
78:	      return
79:	    end
80:	
81:	    status, shares = afpHelper:ListShares()

Login error: %s


Here is a relevant code snippet related to the "Login error: %s" error message:

72:	      status, response = afpHelper:Login()
73:	    end
74:	
75:	    if ( not status ) then
76:	      stdnse.debug1("Login failed")
77:	      stdnse.debug3("Login error: %s", response)
78:	      return
79:	    end
80:	
81:	    status, shares = afpHelper:ListShares()
82:	

Version


This page has been created based on Nmap version 7.92.

Go back to menu.