From ff00f9d8f917d6382ace2037a51a955243d1b2eb Mon Sep 17 00:00:00 2001 From: root Date: Mon, 25 Jun 2018 12:13:17 +1000 Subject: [PATCH 1/2] Added Bold/Underline --- libsubfinder/helper/color.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/libsubfinder/helper/color.go b/libsubfinder/helper/color.go index 2926bf70e..2aa06416d 100644 --- a/libsubfinder/helper/color.go +++ b/libsubfinder/helper/color.go @@ -12,11 +12,13 @@ package helper // Different Colours for use var ( - Red = "\033[31;1;4m" - Cyan = "\033[36;6;2m" - Green = "\033[32;6;3m" - Yellow = "\033[0;33m" - Reset = "\033[0m" + Bold = "\033[1m" + Underline = "\033[4m" + Red = "\033[31;1;4m" + Cyan = "\033[36;6;2m" + Green = "\033[32;6;3m" + Yellow = "\033[0;33m" + Reset = "\033[0m" Info = "\033[33;1;1m" Que = "\033[34;1;1m" From ba9c885acaa86207ad238e0f9a3ebbd434303b4f Mon Sep 17 00:00:00 2001 From: root Date: Mon, 25 Jun 2018 12:30:20 +1000 Subject: [PATCH 2/2] Updated Banner --- main.go | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/main.go b/main.go index dd3a0eaf9..2fbe41176 100644 --- a/main.go +++ b/main.go @@ -23,14 +23,6 @@ import ( "github.com/subfinder/subfinder/libsubfinder/helper" ) -var banner = ` - __ _____ __ - _______ __/ /_ / __(_)___ ____/ /__ _____ - / ___/ / / / __ \/ /_/ / __ \/ __ / _ \/ ___/ - (__ ) /_/ / /_/ / __/ / / / / /_/ / __/ / -/____/\__,_/_.___/_/ /_/_/ /_/\__,_/\___/_/ - v0.2 - by @ice3man ` - // ParseCmdLine ... Parses command line arguments into a setting structure func ParseCmdLine() (state *helper.State, err error) { @@ -75,7 +67,9 @@ func main() { } if state.Silent != true { - fmt.Println(banner) + fmt.Println("===============================================") + fmt.Printf("%s%s-=Subfinder%s v1.0 github.com/subfinder/subfinder\n", helper.Info, helper.Cyan, helper.Reset) + fmt.Println("===============================================") } if state.SetConfig != "none" {