HOME>>>>>>>>>

File ftp-anon

脚本使用类型: portrule
脚本所属分类: default, auth, safe
脚本下载地址: http://nmap.org/svn/scripts/ftp-anon.nse

User Summary

Checks if an FTP server allows anonymous logins.

If anonymous is allowed, gets a directory listing of the root directory and highlights writeable files.

Script Arguments

ftp-anon.maxlist

The maximum number of files to return in the directory listing. By default it is 20, or unlimited if verbosity is enabled. Use a negative number to disable the limit, or 0 to disable the listing entirely.

Example Usage

执行格式

nmap -sV -sC <target>

Script Output

PORT   STATE SERVICE
21/tcp open  ftp
| ftp-anon: Anonymous FTP login allowed (FTP code 230)
| -rw-r--r--   1 1170     924            31 Mar 28  2001 .banner
| d--x--x--x   2 root     root         1024 Jan 14  2002 bin
| d--x--x--x   2 root     root         1024 Aug 10  1999 etc
| drwxr-srwt   2 1170     924          2048 Jul 19 18:48 incoming [NSE: writeable]
| d--x--x--x   2 root     root         1024 Jan 14  2002 lib
| drwxr-sr-x   2 1170     924          1024 Aug  5  2004 pub
|_Only 6 shown. Use --script-args ftp-anon.maxlist=-1 to see all.

Requires


Author: Eddie Bell, Rob Nicholls, Ange Gutek, David Fifield

License: VER007 整理 http://www.ver007.com

action

action (host, port)

Connects to the FTP server and checks if the server allows anonymous logins.

Parameters