w3af>>> help |---------------------------------------------------------------------------------------------------------------------------| | start | Start the scan. | | plugins | Enable and configure plugins. | | exploit | Exploit the vulnerability. | | profiles | List and use scan profiles. | | cleanup | Cleanup before starting a new scan. | |---------------------------------------------------------------------------------------------------------------------------| | help | Display help. Issuing: help [command] , prints more specific help about "command" | | version | Show w3af version information. | | keys | Display key shortcuts. | |---------------------------------------------------------------------------------------------------------------------------| | http-settings | Configure the HTTP settings of the framework. | | misc-settings | Configure w3af misc settings. | | target | Configure the target URL. | |---------------------------------------------------------------------------------------------------------------------------| | back | Go to the previous menu. | | exit | Exit w3af. | |---------------------------------------------------------------------------------------------------------------------------| | kb | Browse the vulnerabilities stored in the Knowledge Base | |---------------------------------------------------------------------------------------------------------------------------|
这是plugins菜单中的命令用法:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
w3af/plugins>>> help |---------------------------------------------------------------------------------------------------------------------------| | list | List available plugins. | |---------------------------------------------------------------------------------------------------------------------------| | back | Go to the previous menu. | | exit | Exit w3af. | |---------------------------------------------------------------------------------------------------------------------------| | grep | View, configure and enable grep plugins | | evasion | View, configure and enable evasion plugins | | audit | View, configure and enable audit plugins | | auth | View, configure and enable auth plugins | | mangle | View, configure and enable mangle plugins | | crawl | View, configure and enable crawl plugins | | infrastructure | View, configure and enable infrastructure plugins | | bruteforce | View, configure and enable bruteforce plugins | | output | View, configure and enable output plugins | |---------------------------------------------------------------------------------------------------------------------------|
w3af/plugins>>> help audit View, configure and enable audit plugins Syntax: audit [config plugin | plugin1[,plugin2 ... pluginN] | desc plugin] Example1: audit Result: All enabled audit plugins are listed.
Example2: audit blind_sqli,buffer_overflow Result: blind_sqli and buffer_overflow are configured to run
Example3: audit config blind_sqli Result: Enters to the plugin configuration menu.
Example4: audit all,!buffer_overflow Result: All audit plugins are configured to run except buffer_overflow.
Example5: audit desc blind_sqli Result: You will get the plugin description.
Example6: audit blind_sqli,buffer_overflow audit !blind_sqli Result: blind_sqli is disabled in the second command, only buffer_overflow will run.
比较常用的是配置具体插件audit config build_sqli
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
w3af/plugins>>> audit config build_sqli Unknown plugin: 'build_sqli' w3af/plugins>>> audit config blind_sqli w3af/plugins/audit/config:blind_sqli>>> help |---------------------------------------------------------------------------------------------------------------------------| | view | List the available options and their values. | | set | Set a parameter value. | | save | Save the configured settings. | |---------------------------------------------------------------------------------------------------------------------------| | back | Go to the previous menu. | | exit | Exit w3af. | |---------------------------------------------------------------------------------------------------------------------------| w3af/plugins/audit/config:blind_sqli>>> view |--------------------------------------------------------------------------------------------------------------------------| | Setting | Value | Modified | Description | |--------------------------------------------------------------------------------------------------------------------------| | eq_limit | 0.9 | | String equal ratio (0.0 to 1.0) | |--------------------------------------------------------------------------------------------------------------------------|
w3af>>> profiles w3af/profiles>>> use fast_scan The plugins configured by the scan profile have been enabled, and their options configured. Please set the target URL(s) and start the scan. w3af/profiles>>>
设置一个url就可以准备启动了
1 2 3 4 5
w3af>>> target w3af/config:target>>> set target http://localhost/ w3af/config:target>>> back w3af>>> w3af>>> start
使用脚本自动化
可以使用-s参数运行脚本文件,每行一个命令,示例脚本如下:
1 2 3 4 5 6
plugins output text_file output config text_file set output_file output-w3af.txt set verbose True back