Skip to content

Commit 88aab46

Browse files
committed
fix debug mode & fix options & 删除demo的poc
1 parent 8e8a40e commit 88aab46

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cmd/commons/attack/attack.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func addPoc(pocs map[string]interface{}) map[string]interface{} {
2828
log.Debugln("github.com/SummerSec/SpringExploit/cmd/commons/attack/attack.go:25")
2929
log.Debug("[*] Add PoC")
3030
// TODO 添加poc
31-
pocs["demo"] = &poc.Demo{}
31+
//pocs["demo"] = &poc.Demo{}
3232
pocs["CVE202222947"] = &poc.CVE202222947{}
3333
return pocs
3434

cmd/commons/core/options.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ func ParseOptions() *Options {
6969
options.Url = ""
7070
//ShowBanner(v)
7171
} else {
72-
ShowBanner(v)
72+
//ShowBanner(v)
7373
flag.PrintDefaults()
7474
}
75-
//ShowBanner(v)
75+
ShowBanner(v)
7676
showVerbose(options)
7777
logs.SaveLogs(options.LogFile)
7878

cmd/commons/utils/httpclient.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
)
88

99
func InIt(mode int, timeout int, proxy string, retry int) (client *req.Client) {
10-
log.Info("init httpclient")
10+
log.Debugf("init httpclient")
1111
client = req.NewClient()
12-
if mode != 5 {
12+
if mode != 0 {
1313
client.EnableDumpAll().EnableDebugLog()
1414
}
1515
client.SetLogger(log.StandardLogger())

0 commit comments

Comments
 (0)