通过观察证书透明日志来捕获钓鱼网站。此工具基于正则表达式,使用有效标准实时检测钓鱼站点,利用certstream实现,同时也能检测例如 https://www.ṁyetḣerwallet.com 的punycode(IDNA)攻击。
$ cd /opt/
$ git clone https://github.com/6IX7ine/certstreamcatcher.git
$ cd certstreamcatcher
$ npm install
使用 npm 安装 certstreamcatcher 执行:
npm install --save certstreamcatcher
这是一个用于测试 certstreamcatcher 的游乐场
https://npm.runkit.com/certstreamcatcher
certstreamcatcher 极其简单,你只需导入 certstreamcatcher 和 certstream 库,注册回调函数,然后调用 certstreamClientPhishing 并将回调参数传递给它。
const certstreamcatcher = require('certstreamcatcher');
const certstream = require("certstream");
const regex = /(wellsfargo|paypal|login|sign-in|secure|update|money|sslsecure|amazon)/gi; # 关键词
const tlds = ['.io','.gq','.ml','.cf','.tk','.xyz','.pw','.cc']; # 顶级域名
var client = new certstream(function(certstream) {
certstreamcatcher.certstreamClientPhishing(certstream, regex, tlds, {tlds: true});
});
client.connect();
要运行程序,将上述代码保存并使用以下命令执行:
$ node certstreamcatcher.js
49m12JEEC6HPCHkLMX5QL4SrDQdKwh6eb4Muu8Z9CwA9MwemhzFQ3VcgHwyuR73rC22WCymTUyep7DVrfN3GPt5JBCekPrR