mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 20:55:28 +00:00
* chore: fix non-constant fmt string in call Signed-off-by: Dwi Siswanto <git@dw1.io> * build: bump all direct modules Signed-off-by: Dwi Siswanto <git@dw1.io> * chore(hosterrorscache): update import path Signed-off-by: Dwi Siswanto <git@dw1.io> * fix(charts): break changes Signed-off-by: Dwi Siswanto <git@dw1.io> * build: pinned `github.com/zmap/zcrypto` to v0.0.0-20240512203510-0fef58d9a9db Signed-off-by: Dwi Siswanto <git@dw1.io> * chore: golangci-lint auto fixes Signed-off-by: Dwi Siswanto <git@dw1.io> * chore: satisfy lints Signed-off-by: Dwi Siswanto <git@dw1.io> * build: migrate `github.com/xanzy/go-gitlab` => `gitlab.com/gitlab-org/api/client-go` Signed-off-by: Dwi Siswanto <git@dw1.io> * feat(json): update build constraints Signed-off-by: Dwi Siswanto <git@dw1.io> * chore: dont panicking on close err Signed-off-by: Dwi Siswanto <git@dw1.io> --------- Signed-off-by: Dwi Siswanto <git@dw1.io>
30 lines
561 B
Go
30 lines
561 B
Go
package main
|
|
|
|
import (
|
|
"flag"
|
|
|
|
_ "github.com/mattn/go-sqlite3"
|
|
"github.com/projectdiscovery/gologger"
|
|
"github.com/projectdiscovery/nuclei/v3/pkg/testutils/fuzzplayground"
|
|
)
|
|
|
|
var (
|
|
addr string
|
|
)
|
|
|
|
func main() {
|
|
flag.StringVar(&addr, "addr", "localhost:8082", "playground server address")
|
|
flag.Parse()
|
|
|
|
defer fuzzplayground.Cleanup()
|
|
server := fuzzplayground.GetPlaygroundServer()
|
|
defer func() {
|
|
_ = server.Close()
|
|
}()
|
|
|
|
// Start the server
|
|
if err := server.Start(addr); err != nil {
|
|
gologger.Fatal().Msgf("Could not start server: %s\n", err)
|
|
}
|
|
}
|