Skip to content

Commit

Permalink
fixed 去除空的default解决性能问题 2023-03-26
Browse files Browse the repository at this point in the history
  • Loading branch information
hktalent committed Mar 26, 2023
1 parent 45ad873 commit 108ccc3
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 9 deletions.
7 changes: 7 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
[submodule "config/jaeles-signatures"]
path = config/jaeles-signatures
url = https://github.com/jaeles-project/jaeles-signatures
branch=master
[submodule "config/nuclei-templates"]
path = config/nuclei-templates
url = https://github.com/projectdiscovery/nuclei-templates.git
branch=main
[submodule "config/fuzzing-templates"]
path = config/fuzzing-templates
url = https://github.com/projectdiscovery/fuzzing-templates.git
branch=main
[submodule "tools/ProxyShell"]
path = tools/ProxyShell
url = https://github.com/ktecv2000/ProxyShell.git
branch=main
[submodule "config/smuggler"]
path = config/smuggler
url = https://github.com/defparam/smuggler.git
branch=master
[submodule "tools/The-Hacker-Recipes"]
path = tools/The-Hacker-Recipes
url = https://github.com/ShutdownRepo/The-Hacker-Recipes.git
branch=master
[submodule "config/51pwn/juicyinfo-nuclei-templates"]
path = config/51pwn/juicyinfo-nuclei-templates
url = [email protected]:cipher387/juicyinfo-nuclei-templates.git
branch=main
1 change: 0 additions & 1 deletion brute/filefuzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ func FileFuzz(u string, indexStatusCode int, indexContentLength int, indexbody s
} else {
return
}
default:
// <-time.After(time.Duration(100) * time.Millisecond)
}
}
Expand Down
2 changes: 1 addition & 1 deletion config/nuclei-templates
Submodule nuclei-templates updated 2147 files
2 changes: 1 addition & 1 deletion engine/engineImp.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ func (x1 *Engine) Running() {
x1.GetTask("")
case <-c2Task.C:
util.DoDelayClear(x1.Wg) // panic: sync: WaitGroup misuse: Add called concurrently with Wait
default:
//default:
//util.DoSleep()
}
}
Expand Down
4 changes: 2 additions & 2 deletions lib/util/websocketClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ func (r *E2eWebsocket) DispatchEvt(data []byte) {
//case Sdp:
// r.E2eImp.SessionDescriptionCbk(io.NopCloser(bytes.NewReader(d1)))
// break
default:
//r.E2eImp.CandidateCbk(io.NopCloser(bytes.NewReader(d1)))
//default:
//r.E2eImp.CandidateCbk(io.NopCloser(bytes.NewReader(d1)))
}
} else if 2 < len(d1) {
Logs("json.Marshal(o.Message)", err, string(d1))
Expand Down
2 changes: 1 addition & 1 deletion pkg/portScan/masscan.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (m *Masscan) ParseLine(s string) ([]Const.Host, error) {
//host.Ip = host.Address.Addr
hosts = append(hosts, host)
}
default:
//default:
}
}
return hosts, nil
Expand Down
1 change: 0 additions & 1 deletion pocs_yml/check/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ func executeXrayPoc(oReq *http.Request, target string, poc *xray_structs.Poc) (i
switch v.(type) {
case *xray_structs.Reverse:
cel.PutReverse(v)
default:
}
}
VariableMapPool.Put(variableMap)
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 @@ -61,7 +61,6 @@ func RunNucleiP(buf *bytes.Buffer, xx chan bool, oOpts *map[string]interface{},
if 2 <= nCnt {
return
}
default:
}
}
})
Expand Down
1 change: 0 additions & 1 deletion test/test1/testPswd.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ func main() {
case b, ok := <-nucleiDone1:
log.Printf("%v %v", b, ok)
break
default:

}
}
Expand Down

0 comments on commit 108ccc3

Please sign in to comment.