添加help的补充说明, 优化README文档

This commit is contained in:
M09Ic 2023-01-05 15:53:10 +08:00
parent da714a1fcc
commit 7e10db2391
2 changed files with 25 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# SPRAY
名为"上一代"目录爆破工具的下一代目录爆破工具
下一代目录爆破工具. 一个完整的目录爆破解决方案
针对path的反向代理, host的反向代理, cdn等中间件编写的高性能目录爆破工具.
复活了一些hashcat中的字典生成算法, 因此戏称为"上一代"目录爆破工具.
复活了一些hashcat中的字典生成算法, 自由的构造字典, 进行基于path的http fuzz.
## Features
@ -21,6 +21,8 @@
## QuickStart
[**Document**](https://chainreactors.github.io/wiki/spray)
基本使用, 从字典中读取目录进行爆破
`spray -u http://example.com -d wordlist1.txt -d wordlist2.txt`

View File

@ -15,6 +15,27 @@ import (
func Spray() {
var option internal.Option
parser := flags.NewParser(&option, flags.Default)
parser.Usage = `
WIKI: https://chainreactors.github.io/wiki/spray
QUICKSTART:
simple example:
spray -u http://example.com -d wordlist1.txt -d wordlist2.txt
mask-base wordlist:
spray -u http://example.com -w "/aaa/bbb{?l#4}/ccc"
rule-base wordlist:
spray -u http://example.com -r rule.txt -d 1.txt
list input spray:
spray -l url.txt -r rule.txt -d 1.txt
resume:
spray --resume stat.json
`
_, err := parser.Parse()
if err != nil {
if err.(*flags.Error).Type != flags.ErrHelp {