mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 18:05:27 +00:00
* use parsed options while signing * update project layout to v3 * fix .gitignore * remove example template * misc updates * bump tlsx version * hide template sig warning with env * js: retain value while using log * fix nil pointer derefernce * misc doc update --------- Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
30 lines
747 B
Go
30 lines
747 B
Go
package runner
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/projectdiscovery/gologger"
|
|
"github.com/projectdiscovery/nuclei/v3/pkg/catalog/config"
|
|
updateutils "github.com/projectdiscovery/utils/update"
|
|
)
|
|
|
|
var banner = fmt.Sprintf(`
|
|
__ _
|
|
____ __ _______/ /__ (_)
|
|
/ __ \/ / / / ___/ / _ \/ /
|
|
/ / / / /_/ / /__/ / __/ /
|
|
/_/ /_/\__,_/\___/_/\___/_/ %s
|
|
`, config.Version)
|
|
|
|
// showBanner is used to show the banner to the user
|
|
func showBanner() {
|
|
gologger.Print().Msgf("%s\n", banner)
|
|
gologger.Print().Msgf("\t\tprojectdiscovery.io\n\n")
|
|
}
|
|
|
|
// NucleiToolUpdateCallback updates nuclei binary/tool to latest version
|
|
func NucleiToolUpdateCallback() {
|
|
showBanner()
|
|
updateutils.GetUpdateToolCallback("nuclei", config.Version)()
|
|
}
|