atenreiro / opensquat

The openSquat is an open-source tool for detecting domain look-alikes by searching for newly registered domains that might be impersonating legit domains and brands.
https://opensquat.com
GNU General Public License v3.0
685 stars 130 forks source link

Enrich your newly created domain names feed #87

Open maaaaz opened 1 year ago

maaaaz commented 1 year ago

Hello @atenreiro,

FYI, I assembled this project in order to provide everyday newly created domain names (NRD) that might not already be inside the "WhoisDS" source: https://github.com/maaaaz/dnsdumps

It might help to complete your own daily feed.

Cheers!

atenreiro commented 1 year ago

Great! Will take a look at this 😊

Thanks a lot buddy

atenreiro commented 1 year ago

I'm currently testing the DNS dumps and fetching this list daily.

At what time (and timezone) do you update this file?

maaaaz commented 1 year ago
atenreiro commented 1 year ago

I'm parsing the today_new.gz and removing the entries that are not domain names (e.g: mx1.domain.com)

maaaaz commented 1 year ago

Indeed you're right, I am not doing this removal as I have worklows to find potential malicious websites, so I need FQDN and not only domains.

atenreiro commented 1 year ago

Ok, I'm filtering using a RegEx for everything that is not in the domain.tld format.

atenreiro commented 1 year ago

Hey @maaaaz

Do you need a whitelisted SSH key to access this rsync folder?

# rsynced data is in /tmp/zones
rsync --stats -az -e "ssh -o LogLevel=quiet -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /tmp/sshkey" dailynrdscan@ssh-dailynrdscan.alwaysdata.net:/home/dailynrdscan/www/zones 
maaaaz commented 1 year ago

Hello @atenreiro,

Why do you want to perform a rsync ?

I do a rsync to bring these data to the GitHub repository, then you have the very same information as on https://github.com/maaaaz/dnsdumps/tree/main

Cheers!

atenreiro commented 1 year ago

Hey @maaaaz

I was trying to replicate your script and avoid getting the feeds directly from GitHub, to avoid an additional point of failure.

maaaaz commented 1 year ago

Okay, nice idea but to be frank the SPOF would rather be that tiny free web remote server dailynrdscan.alwaysdata.net

Would you prefer to have a daily zip at the root of https://dailynrdscan.alwaysdata.net/zones/ containing the "zones" folder, for you to be able to download the content ?

Anyway I am planning to publish the (ugly) bash script I am using to perform the daily scans: you could also reuse it on your side.

Cheers!

atenreiro commented 1 year ago

Ok, I will continue downloading from the GitHub but for now.

Do you manage the hosting server https://dailynrdscan.alwaysdata.net ?

maaaaz commented 1 year ago

No, it is the free plan of https://www.alwaysdata.com/en/ where as a user, you just have an SSH access to a shared VPS, without root permissions.