Skip to content

Commit

Permalink
Added Netlas as a datasource and removed IPv4Info
Browse files Browse the repository at this point in the history
  • Loading branch information
shelld3v committed May 7, 2022
1 parent 8a7cd5d commit d97b5c2
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 102 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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, N45HT, Netlas, PassiveTotal, PentestTools, Quake, Shodan, SonarSearch, Spamhaus, Spyse, Sublist3rAPI, ThreatBook, ThreatCrowd, ThreatMiner, Twitter, URLScan, VirusTotal, 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 |
| Scraping | AbuseIPDB, Ask, Baidu, Bing, DNSDumpster, DuckDuckGo, Gists, HackerOne, HyperStat, PKey, RapidDNS, Riddler, Searchcode, Searx, SiteDossier, Yahoo |
| Web Archives | ArchiveIt, Arquivo, CommonCrawl, HAW, UKWebArchive, Wayback |
| WHOIS | AlienVault, AskDNS, DNSlytics, ONYPHE, SecurityTrails, SpyOnWeb, Umbrella, WhoisXMLAPI |

Expand Down
5 changes: 5 additions & 0 deletions examples/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,11 @@ minimum_ttl = 1440 ; One day
#[data_sources.LeakIX.Credentials]
#apikey =

# https://netlas.io (Free)
#[data_sources.Netlas]
#[data_sources.Netlas.Credentials]
#apikey =

# https://networksdb.io (Paid/Free-trial)
#[data_sources.NetworksDB]
#[data_sources.NetworksDB.Credentials]
Expand Down
61 changes: 61 additions & 0 deletions resources/scripts/api/netlas.ads
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
-- Copyright 2022 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.

local json = require("json")

name = "Netlas"
type = "api"

function start()
set_rate_limit(1)
end

function check()
local c
local cfg = datasrc_config()
if cfg ~= nil then
c = cfg.credentials
end

if (c ~= nil and c.key ~= nil and c.key ~= "") then
return true
end
return false
end

function vertical(ctx, domain)
local c
local cfg = datasrc_config()
if cfg ~= nil then
c = cfg.credentials
end

if (c == nil or c.key == nil or c.key == "") then
return
end

local resp, err = request(ctx, {
url=build_url(domain),
headers={
['Accept']="application/json",
['X-API-Key']=c.key,
},
})
if (err ~= nil and err ~= "") then
log(ctx, "vertical request to service failed: " .. err)
return
end

local j = json.decode(resp)
if (j == nil or j.items == nil or #j.items == 0) then
return
end

for _, item in pairs(j.items) do
new_name(ctx, item['data'].domain)
end
end

function build_url(domain)
return "https://app.netlas.io/api/domains/?q=*." .. domain
end
100 changes: 0 additions & 100 deletions resources/scripts/scrape/ipv4info.ads

This file was deleted.

0 comments on commit d97b5c2

Please sign in to comment.