Nmap gopher-ls NSE Script


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

Script Overview


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

Script Description


The gopher-ls.nse script lists files and directories at the root of a gopher service.

Gopher-ls NSE Script Arguments


This is a full list of arguments supported by the gopher-ls.nse script:

gopher-ls.maxfiles

If set, limits the amount of files returned by the script. If set to 0 or less, all files are shown. The default value is 10.

- - -
To use this script argument, add it to Nmap command line like in this example:

nmap --script=gopher-ls --script-args gopher-ls.maxfiles=value <target>

Gopher-ls NSE Script Example Usage


Here's an example of how to use the gopher-ls.nse script:

nmap -p 70 --script gopher-ls --script-args gopher-ls.maxfiles=100 <target>

Gopher-ls NSE Script Example Output


Here's a sample output from the gopher-ls.nse script:

70/tcp open  gopher
| gopher-ls:
| [txt] /gresearch.txt "Gopher, the next big thing?"
| [dir] /taxf "Tax Forms"
|_Only 2 shown. Use --script-args gopher-ls.maxfiles=-1 to see all.

Gopher-ls 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


  • Toni Ruottu

References


See Also


Visit Nmap NSE Library for more scripts.

Version


This page has been created based on Nmap version 7.92.