diff --git a/CHANGELOG.md b/CHANGELOG.md index 5128049..56d9931 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## v0.0.7 +- [fix] 去除静默模式下 banner 输出 + ## v0.0.6 - [fix] 修复-s 指定源不生效的 bug - [feat] 网络空间引擎搜集子域时,同时获取子域的 ip、 开放的端口 diff --git a/pkg/runner/banner.go b/pkg/runner/banner.go index 0d37138..4313ba8 100644 --- a/pkg/runner/banner.go +++ b/pkg/runner/banner.go @@ -17,7 +17,7 @@ const banner = ` ` // Version is the current version of Starmap -const Version = `v0.0.6` +const Version = `v0.0.7` // showBanner is used to show the banner to the user func showBanner() { diff --git a/pkg/runner/options.go b/pkg/runner/options.go index 66c121e..b576688 100644 --- a/pkg/runner/options.go +++ b/pkg/runner/options.go @@ -67,8 +67,6 @@ type Options struct { // ParseOptions parses the command line flags provided by a user func ParseOptions() *Options { - showBanner() - config, err := GetConfigDirectory() if err != nil { @@ -187,6 +185,10 @@ func ParseOptions() *Options { options.preProcessOptions() + if !options.Silent { + showBanner() + } + // Validate the options passed by the user and if any // invalid options have been used, exit. err = options.validateOptions()