Package: hfinder
hfinderDescriptionHosts FinderHelp recon of hostnames from specific ASN(s) or CIDR(s), thanks tohttps://bgp.he.net/andhttps://www.robtex.com/.Can generate filtered /etc/hosts file based on the results.InstallationYou should haveChromium(https://github.com/SergeyPirogov/webdriver_manager/issues/649) orGoogle Chromepre-installed on your system.pipinstallhfinderOr:gitclonehttps://github.com/cosad3s/hfinder.git
sudopip3install.Usage❯hfinder-h
usage:hfinder[-h][-cCIDR][-aASN][--hosts][--fqdn][--filterFILTER]FindhostnamesfromASNorCIDR-RobtexxBGP.HE

options:-h,--helpshowthishelpmessageandexit-cCIDRCIDR(s)(Singleormultipleseparatedbycommas-Ex:192.168.0.0/24or192.168.0.0/24,192.168.1.0/24)-aASNASN(s)(Singleormultipleseparatedbycommas-Ex:AS1234orAS1234,AS4561)--hostsGenerate/etc/hostslikefile--fqdnOnlydisplayfoundFQDN--filterFILTERFilterFQDNagainstregex(Ex:^.*example\.org$)ExamplesExamples:❯hfinder-c207.231.168.0/21
vpn-west.uberinternal.com:207.231.168.144
itelogs.uberinternal.com:207.231.168.148
backup.uberinternal.com:207.231.168.151
backup.uber.com:207.231.168.151
munki.uberinternal.com:207.231.168.155
team.uber.com:207.231.168.160
team.uberinternal.com:207.231.168.160
jds.uberinternal.com:207.231.168.162
jds-staging.uberinternal.com:207.231.168.163
chef.uberinternal.com:207.231.168.172
scout.uberinternal.com:207.231.168.174
tableau.uberinternal.com:207.231.168.202
vpn-east.uberinternal.com:207.231.169.144
prj.usuppliers.uber.com:207.231.169.199
usuppliers.uber.com:207.231.169.200
vpn-west.uberatc.com:207.231.171.36
...❯hfinder-aAS26673
vpn-west.uberinternal.com:207.231.168.144
itelogs.uberinternal.com:207.231.168.148
backup.uberinternal.com:207.231.168.151
backup.uber.com:207.231.168.151
munki.uberinternal.com:207.231.168.155
team.uber.com:207.231.168.160
team.uberinternal.com:207.231.168.160
jds.uberinternal.com:207.231.168.162
jds-staging.uberinternal.com:207.231.168.163
chef.uberinternal.com:207.231.168.172
scout.uberinternal.com:207.231.168.174
tableau.uberinternal.com:207.231.168.202
vpn-east.uberinternal.com:207.231.169.144
prj.usuppliers.uber.com:207.231.169.199
usuppliers.uber.com:207.231.169.200
vpn-west.uberatc.com:207.231.171.36❯hfinder-aAS26673--hosts207.231.168.144vpn-west.uberinternal.com207.231.168.148itelogs.uberinternal.com207.231.168.151backup.uberinternal.combackup.uber.com207.231.168.155munki.uberinternal.com207.231.168.160team.uberinternal.comteam.uber.com207.231.168.162jds.uberinternal.com207.231.168.163jds-staging.uberinternal.com207.231.168.172chef.uberinternal.com207.231.168.174scout.uberinternal.com207.231.168.202tableau.uberinternal.com207.231.169.144vpn-east.uberinternal.com207.231.169.199prj.usuppliers.uber.com207.231.169.200usuppliers.uber.com207.231.171.36vpn-west.uberatc.com❯hfinder-aAS26673--hosts--filter"^.*uber.com$"207.231.168.151backup.uber.com207.231.168.160team.uber.com207.231.169.199prj.usuppliers.uber.com207.231.169.200usuppliers.uber.com❯hfinder-c207.231.168.0/21--fqdn
vpn-west.uberinternal.com
itelogs.uberinternal.com
backup.uberinternal.com
backup.uber.com
munki.uberinternal.com
team.uber.com
team.uberinternal.com
jds.uberinternal.com
jds-staging.uberinternal.com
chef.uberinternal.com
scout.uberinternal.com
tableau.uberinternal.com
vpn-east.uberinternal.com
prj.usuppliers.uber.com
usuppliers.uber.com
vpn-west.uberatc.com❯hfinder-aAS63948,AS63943,AS63086,AS399759,AS273797,AS26673,AS203351,AS19934,AS147183,AS136114,AS134981,AS134135--hosts--filter"^(.*\.uber\.com|.*\.uberinternal\.com|.*\.ubereats\.com)$"43.231.12.135cn-pek1.uber.com104.36.192.131ussh.uberinternal.combastion-sjc1.uber.combastion02-sjc1.prod.uber.com104.36.197.130ussh.uberinternal.combastion-geo.uber.com104.36.195.187ussh.uberinternal.com104.36.195.188ussh.uberinternal.com104.36.196.133ussh.uberinternal.combastion-phx2.prod.uber.combastion-geo.uber.com104.36.192.244ussh.uberinternal.combastion-sjc1.uber.combastion01-sjc1.prod.uber.com104.36.195.186ussh.uberinternal.com104.36.197.131ussh.uberinternal.combastion-geo.uber.com104.36.197.230ussh.uberinternal.combastion-geo.uber.com104.36.197.129ussh.uberinternal.combastion-geo.uber.com104.36.196.134ussh.uberinternal.combastion-phx2.prod.uber.combastion-geo.uber.com# ...