amass icon indicating copy to clipboard operation
amass copied to clipboard

output of enum -d is diffrent

Open ReekElderblood opened this issue 1 year ago • 4 comments

└─# amass --version
v4.1.0
                                                                                                                                                                                             
┌──(root㉿kali)-[~/]
└─# amass enum -d att.com  
att.com (FQDN) --> mx_record --> mx0b-00191d01.pphosted.com (FQDN)
att.com (FQDN) --> mx_record --> mx0a-00191d01.pphosted.com (FQDN)
att.com (FQDN) --> ns_record --> a2-64.akam.net (FQDN)
att.com (FQDN) --> ns_record --> a4-64.akam.net (FQDN)
att.com (FQDN) --> ns_record --> a5-66.akam.net (FQDN)
att.com (FQDN) --> ns_record --> a1-187.akam.net (FQDN)
att.com (FQDN) --> ns_record --> a11-65.akam.net (FQDN)
att.com (FQDN) --> ns_record --> a22-67.akam.net (FQDN)

it is print this all but i only want to print domain nothing more or do i have to fitler it myslef

ReekElderblood avatar Sep 09 '23 14:09 ReekElderblood

Yeah they seemed to remove the -json flag as well for unknown reasons :/

NotoriousRebel avatar Sep 19 '23 20:09 NotoriousRebel

what should I do if I want to have only a domain in my output?

ReekElderblood avatar Sep 20 '23 09:09 ReekElderblood

Just parse it yourself? Use the -oA flag to at least get output in text file format: amass enum -d att.com -oA att_results Can then just do cat att_results.txt | cut -d " " -f 1 | grep -i "att.com" | sort -u

NotoriousRebel avatar Sep 20 '23 15:09 NotoriousRebel

The same rationale and SQLite-based workaround as in https://github.com/owasp-amass/amass/issues/941#issuecomment-1653979385 seems to apply.

guillaume-d avatar Sep 29 '23 10:09 guillaume-d