ffuf:Go语言编写的高速Web Fuzzer

栏目: Go · 发布时间: 5年前

内容简介:一个字,快!允许fuzz HTTP header值,POST数据和URL的不同部分,包括GET数名称和值;

ffuf是一款 Go 语言编写的高速Web Fuzzer工具,该项目深受大型项目 gobusterwfuzz 的启发。

特性

一个字,快!

允许fuzz HTTP header值,POST数据和URL的不同部分,包括GET数名称和值;

支持静默模式(-s);

模块化架构;

易于添加的过滤器和匹配器。

安装

releases 页面下载预构建的二进制文件,解压缩并运行。

如果你已经安装了编译器,则可以通过以下命令进行安装:

go get github.com/ffuf/ffuf

ffuf的唯一依赖项是Go 1.11。不需要Go标准库之外的依赖项。

使用

要定义ffuf的测试用例,请在URL(-u),headers(-H)或POST数据(-d)中的任意位置使用关键字FUZZ。

-D	DirSearch style wordlist compatibility mode. Used in conjunction with -e flag. Replaces %EXT% in wordlist entry with each of the extensions provided by -e.
 -H "Name: Value"
   	Header "Name: Value", separated by colon. Multiple -H flags are accepted.
 -V	Show version information.
 -X string
   	HTTP method to use (default "GET")
 -ac
   	Automatically calibrate filtering options
 -c	Colorize output.
 -d string
   	POST data.
 -e string
   	Comma separated list of extensions to apply. Each extension provided will extend the wordlist entry once.
 -fc string
   	Filter HTTP status codes from response
 -fr string
   	Filter regexp
 -fs string
   	Filter HTTP response size
 -fw string
   	Filter by amount of words in response
 -k	TLS identity verification
 -mc string
   	Match HTTP status codes from respose, use "all" to match every response code. (default "200,204,301,302,307,401,403")
 -mr string
   	Match regexp
 -ms string
   	Match HTTP response size
 -mw string
   	Match amount of words in response
 -o string
   	Write output to file
 -of string
   	Output file format. Available formats: json, csv, ecsv (default "json")
 -p delay
   	Seconds of delay between requests, or a range of random delay. For example "0.1" or "0.1-2.0"
 -r	Follow redirects
 -s	Do not print additional information (silent mode)
 -sa
   	Stop on all error cases. Implies -sf and -se
 -se
   	Stop on spurious errors
 -sf
   	Stop when > 95% of responses return 403 Forbidden
 -t int
   	Number of concurrent threads. (default 40)
 -timeout int
   	HTTP request timeout in seconds. (default 10)
 -u string
   	Target URL
 -w string
   	Wordlist path
 -x string
   	HTTP Proxy URL

例如:

ffuf -u https://example.org/FUZZ -w /path/to/wordlist

实例

典型目录发现

ffuf:Go语言编写的高速Web Fuzzer

视频演示: https://asciinema.org/a/211350

在URL(-u)末尾使用FUZZ关键字:

ffuf -w /path/to/wordlist -u https://target/FUZZ

虚拟主机发现(没有DNS记录)

ffuf:Go语言编写的高速Web Fuzzer

视频演示: https://asciinema.org/a/211360

假设默认的虚拟主机响应大小为4242字节,我们可以过滤掉该大小的所有响应(-fs 4242),同时fuzz主机 – header:

ffuf -w /path/to/vhost/wordlist -u https://target -H "Host: FUZZ" -fs 4242

GET参数fuzz

GET参数名称模糊测试与目录发现非常相似,通过将FUZZ关键字定义为URL的一部分来工作。对于无效的GET参数名,这里也假设响应大小为4242字节。

ffuf -w /path/to/paramnames.txt -u https://target/script.php?FUZZ=test_value -fs 4242

如果参数名称已知,则可以以相同方式对值进行模糊测试。此示例假定返回HTTP响应代码401的参数值错误。

ffuf -w /path/to/values.txt -u https://target/script.php?valid_name=FUZZ -fc 401

POST数据fuzz

这是一个非常简单的操作,同样使用FUZZ关键字。此示例仅对POST请求的一部分进行模糊测试。我们再次过滤掉401响应。

ffuf -w /path/to/postdata.txt -X POST -d "username=admin\&password=FUZZ" https://target/login.php -fc 401

*参考来源: GitHub ,FB小编secist编译,转载请注明来自FreeBuf.COM


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

重新定义公司

重新定义公司

[美]埃里克·施密特 / 靳婷婷、陈序、何晔 / 中信出版社 / 2015-8 / 49.00

谷歌高管手绘风漫画视频: http://v.youku.com/v_show/id_XMTMxMzQ3NjMyMA==.html?from=y1.7-1.2 Google掌门人第一本国内引进作品 首次公开谷歌内部的管理与运营方法 全面解密执掌谷歌10余年的内幕故事 谷歌 创始人拉里•佩奇作序推荐 今日的谷歌是全球最具标志性的企业,在各个领域都有创新突破,并向技术......一起来看看 《重新定义公司》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

URL 编码/解码
URL 编码/解码

URL 编码/解码

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具