Skip to content

Commit 9a9e2d5

Browse files
committed
性能优化 2.8.9
1 parent 7f12aba commit 9a9e2d5

File tree

9 files changed

+21
-7
lines changed

9 files changed

+21
-7
lines changed

brute/bypass403.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ BreakAll:
125125
break BreakAll
126126
}
127127
}
128+
time.Sleep(33 * time.Second)
128129
}
129130
return aR
130131
}

brute/filefuzz.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ func FileFuzz(u string, indexStatusCode int, indexContentLength int, indexbody s
289289
return
290290
}
291291
default:
292+
time.Sleep(33 * time.Second)
292293
// <-time.After(time.Duration(100) * time.Millisecond)
293294
}
294295
}

engine/engineImp.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"os"
1212
"os/signal"
1313
"sync"
14+
"time"
1415
)
1516

1617
// 引擎对象,全局单实例
@@ -144,6 +145,7 @@ func (x1 *Engine) Running() {
144145
}
145146
default:
146147
util.DoDelayClear(x1.Wg) // panic: sync: WaitGroup misuse: Add called concurrently with Wait
148+
time.Sleep(33 * time.Second)
147149
//util.DoSleep()
148150
}
149151
}

pkg/hydra/dicts/mysql_user.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
root
1+
root
2+
admin
3+
test
4+
dbuser

pkg/naabu/v2/pkg/scan/scan.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ func (s *Scanner) ICMPReadWorker() {
257257
case ipv4.ICMPTypeEchoReply, ipv4.ICMPTypeTimestamp:
258258
s.icmpChan <- &PkgResult{ip: addr.String()}
259259
}
260+
time.Sleep(33 * time.Second)
260261
}
261262
}
262263

pkg/portScan/masscan.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"io"
1010
"log"
1111
"os/exec"
12+
"time"
1213
)
1314

1415
type PortsStr string
@@ -123,6 +124,7 @@ func (m *Masscan) ParseLine(s string) ([]models.Host, error) {
123124
hosts = append(hosts, host)
124125
}
125126
default:
127+
time.Sleep(33 * time.Second)
126128
}
127129
}
128130
return hosts, nil

pocs_go/go_poc_check.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ func POCcheck(wappalyzertechnologies []string, URL string, finalURL string, chec
246246
case "loginpage", "登陆页面", "AdminLoginPage":
247247
username, password, loginurl := brute.Admin_brute(finalURL)
248248
if loginurl != "" {
249-
technologies = append(technologies, fmt.Sprintf("brute-admin|%s:%s", username, password))
249+
technologies = append(technologies, fmt.Sprintf("brute-admin|%s:%s %s", username, password, loginurl))
250250
}
251251
case "sunlogin":
252252
if sunlogin.SunloginRCE(URL) {

test/test1/testPswd.go

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
package main
22

3-
import "log"
3+
import (
4+
"log"
5+
"time"
6+
)
47

8+
// //"github.com/hktalent/scan4all/pkg/hydra"
9+
// import (
510
//
6-
////"github.com/hktalent/scan4all/pkg/hydra"
7-
//import (
811
// "github.com/hktalent/scan4all/pkg/hydra"
9-
//)
1012
//
13+
// )
1114
func main() {
1215
var nucleiDone1, nucleiDone2 = make(chan bool), make(chan bool)
1316
go func() {
@@ -23,7 +26,7 @@ func main() {
2326
log.Printf("%v %v", b, ok)
2427
break
2528
default:
26-
29+
time.Sleep(33 * time.Second)
2730
}
2831
}
2932

test/testReg/TestReg.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ func main() {
3939
return
4040
}
4141
}
42+
time.Sleep(33 * time.Second)
4243
}
4344
}()
4445
CloseAll <- "ok"

0 commit comments

Comments
 (0)