Get the ASN of a company
~ $
whois -h whois.cymru.com $(dig +short company.com)
Description
You need to replace "company.com" with the domain name of your target. Then, you can query Shodan with the "asn" filter.