forked from projectdiscovery/uncover
-
Notifications
You must be signed in to change notification settings - Fork 0
/
banners.go
30 lines (25 loc) · 759 Bytes
/
banners.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package runner
import (
"github.com/projectdiscovery/gologger"
updateutils "github.com/projectdiscovery/utils/update"
)
const banner = `
__ ______ _________ _ _____ _____
/ / / / __ \/ ___/ __ \ | / / _ \/ ___/
/ /_/ / / / / /__/ /_/ / |/ / __/ /
\__,_/_/ /_/\___/\____/|___/\___/_/
`
// Version is the current version of uncover
const version = `v1.1.3`
// showBanner is used to show the banner to the user
func showBanner() {
gologger.Print().Msgf("%s\n", banner)
gologger.Print().Msgf("\t\twjlin0.com\n\n")
}
// GetUpdateCallback returns a callback function that updates uncover
func GetUpdateCallback() func() {
return func() {
showBanner()
updateutils.GetUpdateToolFromRepoCallback("uncover", version, "wjlin0/uncover")()
}
}