Skip to content

Commit 04cc64a

Browse files
committed
updated output from CLI tools
1 parent a62d207 commit 04cc64a

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

cmd/amass/main.go

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ import (
4949
)
5050

5151
const (
52-
mainUsageMsg = "intel|enum [options]"
53-
exampleConfigFileURL = "https://github.com/owasp-amass/amass/blob/master/examples/config.yaml"
54-
userGuideURL = "https://github.com/owasp-amass/amass/blob/master/doc/user_guide.md"
55-
tutorialURL = "https://github.com/owasp-amass/amass/blob/master/doc/tutorial.md"
52+
mainUsageMsg = "enum [options]"
53+
documentationURL = "https://owasp-amass.github.io/docs"
54+
discordInvitation = "https://discord.gg/ANTyEDUXt5"
55+
youTubeURL = "https://www.youtube.com/@jeff_foley"
5656
)
5757

5858
func commandUsage(msg string, cmdFlagSet *flag.FlagSet, errBuf *bytes.Buffer) {
@@ -63,16 +63,13 @@ func commandUsage(msg string, cmdFlagSet *flag.FlagSet, errBuf *bytes.Buffer) {
6363

6464
if msg == mainUsageMsg {
6565
afmt.G.Fprintf(color.Error, "\nSubcommands: \n\n")
66-
afmt.G.Fprintf(color.Error, "\t%-11s - Discover targets for enumerations\n", "amass intel")
6766
afmt.G.Fprintf(color.Error, "\t%-11s - Perform enumerations and network mapping\n", "amass enum")
68-
afmt.G.Fprintf(color.Error, "\t%-11s - Analyze subdomain information in the asset-db\n", "amass subs")
69-
afmt.G.Fprintf(color.Error, "\t%-11s - Analyze OAM data to identify newly discovered assets\n", "amass track")
7067
}
7168

7269
afmt.G.Fprintln(color.Error)
73-
afmt.G.Fprintf(color.Error, "The user's guide can be found here: \n%s\n\n", userGuideURL)
74-
afmt.G.Fprintf(color.Error, "An example configuration file can be found here: \n%s\n\n", exampleConfigFileURL)
75-
afmt.G.Fprintf(color.Error, "The Amass tutorial can be found here: \n%s\n\n", tutorialURL)
70+
afmt.G.Fprintf(color.Error, "The project documentation can be found here: \n%s\n\n", documentationURL)
71+
afmt.G.Fprintf(color.Error, "The Amass Discord server can be found here: \n%s\n\n", discordInvitation)
72+
afmt.G.Fprintf(color.Error, "The Amass YouTube channel can be found here: \n%s\n\n", youTubeURL)
7673
}
7774

7875
func main() {

utils/afmt/parse_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © by Jeff Foley 2017-2023. All rights reserved.
1+
// Copyright © by Jeff Foley 2017-2024. All rights reserved.
22
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
33
// SPDX-License-Identifier: Apache-2.0
44

utils/afmt/print.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ func FprintEnumerationSummary(out io.Writer, total int, asns map[int]*utils.ASNS
139139

140140
fmt.Fprintln(out)
141141
// Print the header information
142-
title := "OAM Tool Suite "
143-
site := "https://github.com/owasp-amass/oam-tools"
142+
title := "OWASP Amass Project "
143+
site := "https://github.com/owasp-amass/amass"
144144
B.Fprint(out, title+Version)
145145
num := 80 - (len(title) + len(Version) + len(site))
146146
pad(num, " ")

0 commit comments

Comments
 (0)