x0rz / phishing_catcher

Phishing catcher using Certstream
https://blog.0day.rocks/catching-phishing-using-certstream-97177f0d499a
GNU General Public License v3.0
1.71k stars 355 forks source link

Add simulation mode, reading domains from a file #58

Open gelim opened 3 years ago

gelim commented 3 years ago

Yo,

Thanks for this nice tool by the way. Here I'm adding a "simulate" mode to benchmark a bit the external.yaml policy from a static file (for instance with already identified evil domains). Was trying to modify as less as possible, hence reusing callback() with a fake message dict stuffed with file domains. But still odd use of the global pbar that I'm required to mute by default to avoid unnecessary output when for instance launching the script with --help or with --simulate when a progress bar does not make sense.

Cheers,

-- Mathieu