Skip to content

Commit 108ccc3

Browse files
committed
fixed 去除空的default解决性能问题 2023-03-26
1 parent 45ad873 commit 108ccc3

File tree

9 files changed

+12
-9
lines changed

9 files changed

+12
-9
lines changed

.gitmodules

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,28 @@
11
[submodule "config/jaeles-signatures"]
22
path = config/jaeles-signatures
33
url = https://github.com/jaeles-project/jaeles-signatures
4+
branch=master
45
[submodule "config/nuclei-templates"]
56
path = config/nuclei-templates
67
url = https://github.com/projectdiscovery/nuclei-templates.git
8+
branch=main
79
[submodule "config/fuzzing-templates"]
810
path = config/fuzzing-templates
911
url = https://github.com/projectdiscovery/fuzzing-templates.git
12+
branch=main
1013
[submodule "tools/ProxyShell"]
1114
path = tools/ProxyShell
1215
url = https://github.com/ktecv2000/ProxyShell.git
16+
branch=main
1317
[submodule "config/smuggler"]
1418
path = config/smuggler
1519
url = https://github.com/defparam/smuggler.git
20+
branch=master
1621
[submodule "tools/The-Hacker-Recipes"]
1722
path = tools/The-Hacker-Recipes
1823
url = https://github.com/ShutdownRepo/The-Hacker-Recipes.git
24+
branch=master
1925
[submodule "config/51pwn/juicyinfo-nuclei-templates"]
2026
path = config/51pwn/juicyinfo-nuclei-templates
2127
url = [email protected]:cipher387/juicyinfo-nuclei-templates.git
28+
branch=main

brute/filefuzz.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,6 @@ func FileFuzz(u string, indexStatusCode int, indexContentLength int, indexbody s
288288
} else {
289289
return
290290
}
291-
default:
292291
// <-time.After(time.Duration(100) * time.Millisecond)
293292
}
294293
}

config/nuclei-templates

Submodule nuclei-templates updated 2147 files

engine/engineImp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ func (x1 *Engine) Running() {
414414
x1.GetTask("")
415415
case <-c2Task.C:
416416
util.DoDelayClear(x1.Wg) // panic: sync: WaitGroup misuse: Add called concurrently with Wait
417-
default:
417+
//default:
418418
//util.DoSleep()
419419
}
420420
}

lib/util/websocketClient.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ func (r *E2eWebsocket) DispatchEvt(data []byte) {
7474
//case Sdp:
7575
// r.E2eImp.SessionDescriptionCbk(io.NopCloser(bytes.NewReader(d1)))
7676
// break
77-
default:
78-
//r.E2eImp.CandidateCbk(io.NopCloser(bytes.NewReader(d1)))
77+
//default:
78+
//r.E2eImp.CandidateCbk(io.NopCloser(bytes.NewReader(d1)))
7979
}
8080
} else if 2 < len(d1) {
8181
Logs("json.Marshal(o.Message)", err, string(d1))

pkg/portScan/masscan.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func (m *Masscan) ParseLine(s string) ([]Const.Host, error) {
122122
//host.Ip = host.Address.Addr
123123
hosts = append(hosts, host)
124124
}
125-
default:
125+
//default:
126126
}
127127
}
128128
return hosts, nil

pocs_yml/check/check.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ func executeXrayPoc(oReq *http.Request, target string, poc *xray_structs.Poc) (i
109109
switch v.(type) {
110110
case *xray_structs.Reverse:
111111
cel.PutReverse(v)
112-
default:
113112
}
114113
}
115114
VariableMapPool.Put(variableMap)

projectdiscovery/nuclei_Yaml/nuclei_yaml.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ func RunNucleiP(buf *bytes.Buffer, xx chan bool, oOpts *map[string]interface{},
6161
if 2 <= nCnt {
6262
return
6363
}
64-
default:
6564
}
6665
}
6766
})

test/test1/testPswd.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ func main() {
2525
case b, ok := <-nucleiDone1:
2626
log.Printf("%v %v", b, ok)
2727
break
28-
default:
2928

3029
}
3130
}

0 commit comments

Comments
 (0)