Home page logo
/
Zenmap screenshot
Intro Reference Guide Book Install Guide
Download Changelog Zenmap GUI Docs
Bug Reports OS Detection Propaganda Related Projects
In the Movies In the News
Example Nmap output

File smb-ls

Script types: hostrule
Categories: discovery, safe
Download: http://nmap.org/svn/scripts/smb-ls.nse

User Summary

Attempts to retrieve useful information about files shared on SMB volumes. The output is intended to resemble the output of the UNIX ls command.

Script Arguments

smb-ls.errors

[optional] report connection errors

smb-ls.pattern

[optional] the search pattern to execute (default: *)

smb-ls.share

[optional] the share to connect to

smb-ls.shares

[optional] a colon-separated list of shares to connect to

smb-ls.path

[optional] the path, relative to the share to list the contents from

smb-ls.checksum

[optional] download each file and calculate a SHA1 checksum

smb-ls.maxdepth

[optional] the maximum depth to recurse into a directory (default: no recursion)

smb-ls.maxfiles

[optional] return only a certain amount of files

randomseed, smbbasic, smbport, smbsign

See the documentation for the smb library.

smbdomain, smbhash, smbnoguest, smbpassword, smbtype, smbusername

See the documentation for the smbauth library.

Example Usage

nmap -p 445 <ip> --script smb-ls --script-args 'share=c$,path=\temp'

Script Output

Host script results:
| smb-ls:
|   Directory of \\192.168.56.101\c$\
|     2007-12-02 00:20:09  0      AUTOEXEC.BAT
|     2007-12-02 00:20:09  0      CONFIG.SYS
|     2007-12-02 00:53:39  <DIR>  Documents and Settings
|     2009-09-08 13:26:10  <DIR>  e5a6b742d36facb19c5192852c43
|     2008-12-01 02:06:29  <DIR>  Inetpub
|     2007-02-18 00:31:38  94720  msizap.exe
|     2007-12-02 00:55:01  <DIR>  Program Files
|     2008-12-01 02:05:52  <DIR>  temp
|     2011-12-16 14:40:18  <DIR>  usr
|     2007-12-02 00:42:40  <DIR>  WINDOWS
|_    2007-12-02 00:22:38  <DIR>  wmpub

Requires


Author: Patrik Karlsson

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

Nmap Site Navigation

Intro Reference Guide Book Install Guide
Download Changelog Zenmap GUI Docs
Bug Reports OS Detection Propaganda Related Projects
In the Movies In the News
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]