Skip to content

Commit

Permalink
Merge branch 'develop' into config/resolvers-tests-refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
VltraHeaven committed Jun 24, 2022
2 parents d26ba42 + e0e5c5c commit 1abe612
Show file tree
Hide file tree
Showing 29 changed files with 486 additions and 472 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

![GitHub Test Status](https://github.com/OWASP/Amass/workflows/tests/badge.svg)
[![GoDoc](https://pkg.go.dev/badge/github.com/OWASP/Amass/v3?utm_source=godoc)](https://pkg.go.dev/github.com/OWASP/Amass/v3)
[![License](https://img.shields.io/github/license/OWASP/Amass)](https://www.apache.org/licenses/LICENSE-2.0)
[![License](https://img.shields.io/badge/license-apache%202-blue)](https://www.apache.org/licenses/LICENSE-2.0)
[![Go Report](https://goreportcard.com/badge/github.com/OWASP/Amass)](https://goreportcard.com/report/github.com/OWASP/Amass)
[![CodeFactor](https://www.codefactor.io/repository/github/OWASP/Amass/badge)](https://www.codefactor.io/repository/github/OWASP/Amass)
[![Maintainability](https://api.codeclimate.com/v1/badges/41c139f7cf5c23df1e58/maintainability)](https://codeclimate.com/github/OWASP/Amass/maintainability)
Expand All @@ -24,11 +24,11 @@ The OWASP Amass Project performs network mapping of attack surfaces and external

| Technique | Data Sources |
|:-------------|:-------------|
| APIs | 360PassiveDNS, Ahrefs, AnubisDB, BinaryEdge, BufferOver, BuiltWith, C99, Chaos, CIRCL, Cloudflare, DNSDB, DNSRepo, Detectify, FOFA, FullHunt, GitHub, GitLab, Greynoise, HackerTarget, Hunter, IntelX, LeakIX, Maltiverse, Mnemonic, N45HT, PassiveTotal, PentestTools, Quake, Shodan, SonarSearch, Spamhaus, Spyse, Sublist3rAPI, ThreatBook, ThreatCrowd, ThreatMiner, Twitter, URLScan, VirusTotal, ZETAlytics, ZoomEye |
| APIs | 360PassiveDNS, Ahrefs, AnubisDB, BinaryEdge, BufferOver, BuiltWith, C99, Chaos, CIRCL, Cloudflare, DNSDB, DNSRepo, Detectify, FOFA, FullHunt, GitHub, GitLab, Greynoise, HackerTarget, Hunter, IntelX, LeakIX, Maltiverse, Mnemonic, Netlas, PassiveTotal, PentestTools, Quake, Searchcode, Shodan, SonarSearch, Spamhaus, Spyse, Sublist3rAPI, ThreatBook, ThreatCrowd, ThreatMiner, Twitter, URLScan, VirusTotal, Yandex, ZETAlytics, ZoomEye |
| Certificates | Active pulls (optional), Censys, CertSpotter, Crtsh, Digitorus, FacebookCT, GoogleCT |
| DNS | Brute forcing, Reverse DNS sweeping, NSEC zone walking, Zone transfers, FQDN alterations/permutations, FQDN Similarity-based Guessing |
| Routing | ARIN, BGPTools, BGPView, IPdata, IPinfo, NetworksDB, RADb, Robtex, ShadowServer, TeamCymru |
| Scraping | AbuseIPDB, Ask, Baidu, Bing, DNSDumpster, DuckDuckGo, Gists, HackerOne, HyperStat, IPv4Info, PKey, RapidDNS, Riddler, Searchcode, Searx, SiteDossier, Yahoo |
| Routing | BGPTools, BGPView, IPdata, IPinfo, NetworksDB, RADb, Robtex, ShadowServer, TeamCymru |
| Scraping | AbuseIPDB, Ask, Baidu, Bing, DNSDumpster, DNSHistory, DuckDuckGo, Gists, HackerOne, HyperStat, PKey, RapidDNS, Riddler, Searx, SiteDossier, Yahoo |
| Web Archives | ArchiveIt, Arquivo, CommonCrawl, HAW, UKWebArchive, Wayback |
| WHOIS | AlienVault, AskDNS, DNSlytics, ONYPHE, SecurityTrails, SpyOnWeb, Umbrella, WhoisXMLAPI |

Expand Down Expand Up @@ -140,7 +140,7 @@ Add it to our ever-growing list of [REFERENCES.md](REFERENCES.md) by forking and
* [Capt. Meelo | Asset Enumeration: Expanding a Target's Attack Surface](https://captmeelo.com/bugbounty/2019/09/02/asset-enumeration.html)
* [Noobhax | My Recon Process — DNS Enumeration](https://medium.com/@noobhax/my-recon-process-dns-enumeration-d0e288f81a8a)

## Licensing [![License](https://img.shields.io/github/license/OWASP/Amass)](https://www.apache.org/licenses/LICENSE-2.0)
## Licensing [![License](https://img.shields.io/badge/license-apache%202-blue)](https://www.apache.org/licenses/LICENSE-2.0)

This program is free software: you can redistribute it and/or modify it under the terms of the [Apache license](LICENSE). OWASP Amass and any contributions are Copyright © by Jeff Foley 2017-2022. Some subcomponents have separate licenses.

Expand Down
9 changes: 7 additions & 2 deletions cmd/amass/intel.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,9 @@ func runIntelCommand(clArgs []string) {
go func() { _ = ic.HostedDomains(ctx) }()
}

processIntelOutput(ic, &args)
if !processIntelOutput(ic, &args) {
os.Exit(1)
}
}

func printNetblocks(asns []int, cfg *config.Config, sys systems.System) {
Expand All @@ -279,7 +281,7 @@ func printNetblocks(asns []int, cfg *config.Config, sys systems.System) {
}
}

func processIntelOutput(ic *intel.Collection, args *intelArgs) {
func processIntelOutput(ic *intel.Collection, args *intelArgs) bool {
var err error
dir := config.OutputDirectory(ic.Config.Dir)

Expand All @@ -303,6 +305,7 @@ func processIntelOutput(ic *intel.Collection, args *intelArgs) {
_, _ = outptr.Seek(0, 0)
}

var found bool
// Collect all the names returned by the intelligence collection
for out := range ic.Output {
source, _, ips := format.OutputLineParts(out, args.Options.Sources,
Expand All @@ -317,7 +320,9 @@ func processIntelOutput(ic *intel.Collection, args *intelArgs) {
if outptr != nil {
fmt.Fprintf(outptr, "%s%s%s\n", source, out.Domain, ips)
}
found = true
}
return found
}

// Obtain parameters from provided input files
Expand Down
107 changes: 0 additions & 107 deletions datasrcs/fofa.go

This file was deleted.

2 changes: 1 addition & 1 deletion datasrcs/scripting/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func (s *Script) newASN(L *lua.LState) int {
// Wrapper so that scripts can send discovered associated domains to Amass.
func (s *Script) associated(L *lua.LState) int {
if ctx, err := extractContext(L.CheckUserData(1)); err == nil && !contextExpired(ctx) {
if domain, assoc := L.CheckString(2), L.CheckString(3); err == nil && domain != "" && assoc != "" {
if domain, assoc := L.CheckString(2), L.CheckString(3); err == nil && domain != "" && assoc != "" && domain != assoc {
select {
case <-ctx.Done():
case <-s.Done():
Expand Down
1 change: 0 additions & 1 deletion datasrcs/sources.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ func GetAllSources(sys systems.System) []service.Service {
NewAlienVault(sys),
NewCloudflare(sys),
NewDNSDB(sys),
NewFOFA(sys),
NewNetworksDB(sys),
NewRADb(sys),
NewTwitter(sys),
Expand Down

0 comments on commit 1abe612

Please sign in to comment.