owasp-amass / amass

In-depth attack surface mapping and asset discovery
https://owasp.org/www-project-amass/
Other
11.51k stars 1.84k forks source link

Exclude ASN and Netblocks from output #1023

Open dpalavra opened 1 month ago

dpalavra commented 1 month ago

Is it possible to exclude this?

capastacka commented 1 month ago

also hoping there's a solution...i get way more information than just a list of subdomains, like FQDN...is there a way to just get the subs in the output?

dpalavra commented 1 month ago

Exactly what Im looking for. Discovering subdomains, nothing else.

capastacka commented 1 month ago

ok so with the new version, first you have run this: amass enum -dir ./ -d domain.com

this will save multiple output files in the directory you're in. the one you need for the next step is 'amass.sqlite

then run this: sqlite3 amass.sqlite "select content->>'name' from assets where type = 'FQDN'"

you should get the list of subs now.

where i got this solution: https://www.youtube.com/watch?v=iGoULB1p1wM starting around 18:36

dpalavra commented 1 month ago

Thanks man! Will try now and report on it!

dpalavra commented 1 month ago

Works great, exactly what I was looking for! Much appreciated man!!!