Skip to content

Commit

Permalink
性能优化 2.8.9
Browse files Browse the repository at this point in the history
  • Loading branch information
hktalent committed Nov 24, 2023
1 parent 5e76b39 commit 1878eca
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 7 deletions.
1 change: 1 addition & 0 deletions brute/bypass403.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ BreakAll:
break BreakAll
}
}
time.Sleep(33 * time.Second)
}
return aR
}
1 change: 1 addition & 0 deletions brute/filefuzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ func FileFuzz(u string, indexStatusCode int, indexContentLength int, indexbody s
return
}
default:
time.Sleep(33 * time.Second)
// <-time.After(time.Duration(100) * time.Millisecond)
}
}
Expand Down
2 changes: 2 additions & 0 deletions engine/engineImp.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"os"
"os/signal"
"sync"
"time"
)

// 引擎对象,全局单实例
Expand Down Expand Up @@ -144,6 +145,7 @@ func (x1 *Engine) Running() {
}
default:
util.DoDelayClear(x1.Wg) // panic: sync: WaitGroup misuse: Add called concurrently with Wait
time.Sleep(33 * time.Second)
//util.DoSleep()
}
}
Expand Down
5 changes: 4 additions & 1 deletion pkg/hydra/dicts/mysql_user.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
root
root
admin
test
dbuser
1 change: 1 addition & 0 deletions pkg/naabu/v2/pkg/scan/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ func (s *Scanner) ICMPReadWorker() {
case ipv4.ICMPTypeEchoReply, ipv4.ICMPTypeTimestamp:
s.icmpChan <- &PkgResult{ip: addr.String()}
}
time.Sleep(33 * time.Second)
}
}

Expand Down
2 changes: 2 additions & 0 deletions pkg/portScan/masscan.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"io"
"log"
"os/exec"
"time"
)

type PortsStr string
Expand Down Expand Up @@ -123,6 +124,7 @@ func (m *Masscan) ParseLine(s string) ([]models.Host, error) {
hosts = append(hosts, host)
}
default:
time.Sleep(33 * time.Second)
}
}
return hosts, nil
Expand Down
2 changes: 1 addition & 1 deletion pocs_go/go_poc_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func POCcheck(wappalyzertechnologies []string, URL string, finalURL string, chec
case "loginpage", "登陆页面", "AdminLoginPage":
username, password, loginurl := brute.Admin_brute(finalURL)
if loginurl != "" {
technologies = append(technologies, fmt.Sprintf("brute-admin|%s:%s", username, password))
technologies = append(technologies, fmt.Sprintf("brute-admin|%s:%s %s", username, password, loginurl))
}
case "sunlogin":
if sunlogin.SunloginRCE(URL) {
Expand Down
13 changes: 8 additions & 5 deletions test/test1/testPswd.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
package main

import "log"
import (
"log"
"time"
)

// //"github.com/hktalent/scan4all/pkg/hydra"
// import (
//
////"github.com/hktalent/scan4all/pkg/hydra"
//import (
// "github.com/hktalent/scan4all/pkg/hydra"
//)
//
// )
func main() {
var nucleiDone1, nucleiDone2 = make(chan bool), make(chan bool)
go func() {
Expand All @@ -23,7 +26,7 @@ func main() {
log.Printf("%v %v", b, ok)
break
default:

time.Sleep(33 * time.Second)
}
}

Expand Down
1 change: 1 addition & 0 deletions test/testReg/TestReg.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func main() {
return
}
}
time.Sleep(33 * time.Second)
}
}()
CloseAll <- "ok"
Expand Down

0 comments on commit 1878eca

Please sign in to comment.