Script afp-ls

Script types: portrule
Categories: discovery, safe
Download: https://svn.nmap.org/nmap/scripts/afp-ls.nse

Script Summary

Attempts to get useful information about files from AFP volumes. The output is intended to resemble the output of ls.

Script Arguments

afp.password, afp.username

See the documentation for the afp library.

ls.checksum, ls.empty, ls.errors, ls.human, ls.maxdepth, ls.maxfiles

See the documentation for the ls library.

Example Usage

nmap -sS -sV -p 548 --script=afp-ls target

Script Output

PORT    STATE SERVICE
548/tcp open  afp     syn-ack
| afp-ls:
|   Information retrieved as patrik
|   Volume Macintosh HD
|   maxfiles limit reached (10)
|   PERMISSION  UID  GID  SIZE    TIME              FILENAME
|   -rw-r--r--  501  80   15364   2010-06-13 17:52  .DS_Store
|   ----------  0    80   0       2009-10-05 07:42  .file
|   drwx------  501  20   0       2009-11-04 17:28  .fseventsd
|   -rw-------  0    0    393216  2010-06-14 01:49  .hotfiles.btree
|   drwx------  0    80   0       2009-11-04 18:19  .Spotlight-V100
|   d-wx-wx-wx  0    80   0       2009-11-04 18:25  .Trashes
|   drwxr-xr-x  0    0    0       2009-05-18 21:29  .vol
|   drwxrwxr-x  0    80   0       2009-04-28 00:06  Applications
|   drwxr-xr-x  0    0    0       2009-05-18 21:43  bin
|   drwxr-xr-x  501  80   0       2010-08-10 22:55  bundles
|
|   Volume Patrik Karlsson's Public Folder
|   PERMISSION  UID  GID  SIZE  TIME              FILENAME
|   -rw-------  501  20   6148  2010-12-27 23:45  .DS_Store
|   -rw-r--r--  501  20   0     2007-07-24 21:17  .localized
|   drwx-wx-wx  501  20   0     2009-06-19 04:01  Drop Box
|
|   Volume patrik
|   maxfiles limit reached (10)
|   PERMISSION  UID  GID  SIZE   TIME              FILENAME
|   -rw-------  501  20   11281  2010-06-14 22:51  .bash_history
|   -rw-r--r--  501  20   33     2011-01-19 20:11  .bashrc
|   -rw-------  501  20   3      2007-07-24 21:17  .CFUserTextEncoding
|   drwx------  501  20   0      2010-09-12 14:52  .config
|   drwx------  501  20   0      2010-09-12 12:29  .cups
|   -rw-r--r--  501  20   15364  2010-06-13 18:34  .DS_Store
|   drwxr-xr-x  501  20   0      2010-09-12 14:13  .fontconfig
|   -rw-------  501  20   102    2010-06-14 01:46  .lesshst
|   -rw-r--r--  501  20   241    2010-06-14 01:45  .profile
|   -rw-------  501  20   218    2010-09-12 16:35  .recently-used.xbel
|_

Requires


Author:

  • Patrik Karlsson

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