This commit is contained in:
M09Ic committed 2025-02-22 02:49:50 +08:00
1 parent 4249da17b4
commit bc6cc544d9
3 files changed
+3 -24

No files matched your search

+1 -1
View File
@@ -96,7 +96,7 @@ type OutputOptions struct {
}
type RequestOptions struct {
Method string `short:"x" long:"method" default:"GET" description:"String, request method, e.g.: --method POST" config:"method"`
Method string `short:"X" long:"method" default:"GET" description:"String, request method, e.g.: --method POST" config:"method"`
Headers []string `long:"header" description:"Strings, custom headers, e.g.: --header 'Auth: example_auth'" config:"headers"`
UserAgent string `long:"user-agent" description:"String, custom user-agent, e.g.: --user-agent Custom" config:"useragent"`
RandomUserAgent bool `long:"random-agent" description:"Bool, use random with default user-agent" config:"random-useragent"`
+2 -1
View File
@@ -329,10 +329,11 @@ func (pool *BrutePool) Invoke(v interface{}) {
defer pool.initwg.Done()
pool.locker.Lock()
pool.random = bl
pool.locker.Unlock()
if !bl.IsValid {
return
}
pool.locker.Unlock()
bl.Collect()
pool.addFuzzyBaseline(bl)
-22
View File
@@ -1,22 +0,0 @@
package internal
//type bytesPatcher struct{}
//
//func (p *bytesPatcher) Visit(node *ast.Node) {
// switch (*node).(type) {
// case *ast.MemberNode:
// ast.Patch(node, &ast.CallNode{
// Callee: &ast.MemberNode{
// Node: *node,
// Name: "String",
// Property: &ast.StringNode{Value: "String"},
// },
// })
// }
//}
var ConfigTemplate = `
-----------------------------------------------------------
-----------------------------------------------------------
`