Skip to content

Commit

Permalink
hydra performance optimization 2022-07-30
Browse files Browse the repository at this point in the history
  • Loading branch information
x51pwn committed Jul 30, 2022
1 parent 69fcf91 commit 4c5fa6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"enableEsSv": false,
"CheckWeakPassword": true,
"esthread": 8,
"hydrathread": 8,
"hydrathread": 64,
"Fuzzthreads": 32,
"enableFingerTitleHeaderMd5Hex": false,
"Cookie": "",
Expand Down
4 changes: 2 additions & 2 deletions pkg/hydra/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ func init() {
// 密码破解
func Start(IPAddr string, Port int, Protocol string) {
authInfo := NewAuthInfo(IPAddr, Port, Protocol)
nT, err := strconv.Atoi(util.GetVal4File("hydrathread", "8"))
nT, err := strconv.Atoi(util.GetVal4File("hydrathread", "64"))
if nil != err {
nT = 8
nT = 64
}
crack := NewCracker(authInfo, true, nT)
fmt.Printf("\n[hydra]->开始对%v:%v [ %v ] 进行暴力破解,字典长度为:%d\n", IPAddr, Port, Protocol, crack.Length())
Expand Down
1 change: 0 additions & 1 deletion projectdiscovery/nuclei_Yaml/nuclei_yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ var (
func RunNuclei(buf *bytes.Buffer, xx chan bool, oOpts *map[string]interface{}, outNuclei chan<- *runner2.Runner) {
options := &types.Options{}
defer func() {
xx <- true
close(xx)
}()
if !util.GetValAsBool("enableNuclei") {
Expand Down

0 comments on commit 4c5fa6d

Please sign in to comment.