Skip to content

Commit

Permalink
upgraded to OAM v0.8.0 and started pruning the client
Browse files Browse the repository at this point in the history
  • Loading branch information
caffix committed Sep 24, 2024
1 parent da15f9e commit 963b6a7
Show file tree
Hide file tree
Showing 15 changed files with 27 additions and 1,660 deletions.
4 changes: 0 additions & 4 deletions cmd/amass/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ func runHelpCommand(clArgs []string) {
runSubsCommand(help)
case "emails":
runEmailsCommand(help)
case "viz":
runVizCommand(help)
case "track":
runTrackCommand(help)
default:
commandUsage(mainUsageMsg, helpCommand, helpBuf)
return
Expand Down
7 changes: 1 addition & 6 deletions cmd/amass/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ func commandUsage(msg string, cmdFlagSet *flag.FlagSet, errBuf *bytes.Buffer) {
g.Fprintf(color.Error, "\t%-11s - Discover targets for enumerations\n", "amass intel")
g.Fprintf(color.Error, "\t%-11s - Perform enumerations and network mapping\n", "amass enum")
g.Fprintf(color.Error, "\t%-11s - Analyze subdomain information in the asset-db\n", "amass subs")
g.Fprintf(color.Error, "\t%-11s - Analyze OAM data to generate graph visualizations\n", "amass viz")
g.Fprintf(color.Error, "\t%-11s - Analyze OAM data to identify newly discovered assets\n", "amass track")
}

Expand Down Expand Up @@ -137,10 +136,6 @@ func main() {
runSubsCommand(os.Args[2:])
case "emails":
runEmailsCommand(os.Args[2:])
case "viz":
runVizCommand(os.Args[2:])
case "track":
runTrackCommand(os.Args[2:])
case "help":
runHelpCommand(os.Args[2:])
default:
Expand Down Expand Up @@ -338,7 +333,7 @@ func convertScopeToAssets(scope *config.Scope) []*et.Asset {
}

// Create an asset from the CIDR and append it to the assets slice.
asset := oamnet.Netblock{Cidr: prefix, Type: ipType}
asset := oamnet.Netblock{CIDR: prefix, Type: ipType}
data := et.AssetData{
OAMAsset: asset,
OAMType: asset.AssetType(),
Expand Down
2 changes: 1 addition & 1 deletion cmd/amass/subs.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ func readASPrefixes(db *assetdb.AssetDB, asn int, since time.Time) []string {
if a, err := db.FindById(rel.ToAsset.ID, since); err != nil {
continue
} else if netblock, ok := a.Asset.(*network.Netblock); ok {
prefixes = append(prefixes, netblock.Cidr.String())
prefixes = append(prefixes, netblock.CIDR.String())
}
}
}
Expand Down
174 changes: 0 additions & 174 deletions cmd/amass/track.go

This file was deleted.

Loading

0 comments on commit 963b6a7

Please sign in to comment.