2020-04-04 03:45:39 +05:30
|
|
|
package runner
|
|
|
|
|
|
2021-06-30 18:39:01 +05:30
|
|
|
import (
|
|
|
|
|
"fmt"
|
2020-04-04 03:45:39 +05:30
|
|
|
|
2021-06-30 18:39:01 +05:30
|
|
|
"github.com/projectdiscovery/gologger"
|
2023-10-17 17:44:13 +05:30
|
|
|
"github.com/projectdiscovery/nuclei/v3/pkg/catalog/config"
|
2023-04-19 21:58:48 +05:30
|
|
|
updateutils "github.com/projectdiscovery/utils/update"
|
2021-06-30 18:39:01 +05:30
|
|
|
)
|
|
|
|
|
|
2021-07-05 17:29:45 +05:30
|
|
|
var banner = fmt.Sprintf(`
|
2021-07-05 21:01:51 +05:30
|
|
|
__ _
|
|
|
|
|
____ __ _______/ /__ (_)
|
|
|
|
|
/ __ \/ / / / ___/ / _ \/ /
|
|
|
|
|
/ / / / /_/ / /__/ / __/ /
|
2023-04-19 21:58:48 +05:30
|
|
|
/_/ /_/\__,_/\___/_/\___/_/ %s
|
2021-06-30 18:39:01 +05:30
|
|
|
`, config.Version)
|
2020-04-04 03:45:39 +05:30
|
|
|
|
|
|
|
|
// showBanner is used to show the banner to the user
|
|
|
|
|
func showBanner() {
|
2020-12-29 15:38:14 +05:30
|
|
|
gologger.Print().Msgf("%s\n", banner)
|
|
|
|
|
gologger.Print().Msgf("\t\tprojectdiscovery.io\n\n")
|
2020-04-04 03:45:39 +05:30
|
|
|
}
|
2023-04-19 21:58:48 +05:30
|
|
|
|
|
|
|
|
// NucleiToolUpdateCallback updates nuclei binary/tool to latest version
|
|
|
|
|
func NucleiToolUpdateCallback() {
|
|
|
|
|
showBanner()
|
|
|
|
|
updateutils.GetUpdateToolCallback("nuclei", config.Version)()
|
|
|
|
|
}
|