HOME>>>>>>>>>

File http-config-backup

脚本使用类型: portrule
脚本所属分类: auth, intrusive
脚本下载地址: http://nmap.org/svn/scripts/http-config-backup.nse

User Summary

Checks for backups and swap files of common content management system and web server configuration files.

When web server files are edited in place, the text editor can leave backup or swap files in a place where the web server can serve them. The script checks for these files:

And for each of these file applies the following transformations (using config.php as an example):

This script is inspired by the CMSploit program by Feross Aboukhadijeh: http://www.feross.org/cmsploit/.

Script Arguments

http-config-backup.save

directory to save all the valid config files found

http-config-backup.path

the path where the CMS is installed

smbdomain, smbhash, smbnoguest, smbpassword, smbtype, smbusername

See the documentation for the smbauth library.

http.max-cache-size, http.max-pipeline, http.pipeline, http.useragent

See the documentation for the http library.

Example Usage

执行格式

nmap --script=http-config-backup <target>

Script Output

PORT   STATE SERVICE REASON
80/tcp open  http    syn-ack
| http-config-backup:
|   /%23wp-config.php%23 HTTP/1.1 200 OK
|_  /config.php~ HTTP/1.1 200 OK

Requires


Author: Riccardo Cecolin

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