forked from projectdiscovery/shuffledns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
banners.go
30 lines (25 loc) · 763 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 shuffledns
const version = `v1.0.9`
// 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")
}
// GetUpdateCallback returns a callback function that updates shuffledns
func GetUpdateCallback() func() {
return func() {
showBanner()
updateutils.GetUpdateToolCallback("shuffledns", version)()
}
}