Skip to content

Commit

Permalink
[fix] 修复静默模式下还会输出 banner 的 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yhy0 committed Apr 11, 2022
1 parent 1595d3b commit cece6d5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## v0.0.7
- [fix] 去除静默模式下 banner 输出

## v0.0.6
- [fix] 修复-s 指定源不生效的 bug
- [feat] 网络空间引擎搜集子域时,同时获取子域的 ip、 开放的端口
Expand Down
2 changes: 1 addition & 1 deletion pkg/runner/banner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
6 changes: 4 additions & 2 deletions pkg/runner/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit cece6d5

Please sign in to comment.