ttlns/brotector

[feature request] -> detect JS tampering

Open

#9 创建于 2024年11月24日

在 GitHub 查看
 (8 评论) (0 反应) (0 负责人)JavaScript (15 fork)auto 404
Liesenhancementgood first issuehelp wanted

仓库指标

Star
 (284 star)
PR 合并指标
 (PR 指标待抓取)

描述

Hero: https://github.com/ulixee/hero

Seems to claim that it is better than puppeteer, playwright when it comes to scraping: https://ulixee.org/docs/hero/overview/basic-concepts

For now, it doesn't get detected by brotector:

out


I tried to see if there were some things obvious by using https://deviceandbrowserinfo.com/info_device but couldn't find anything.

But creepjs detects it: https://abrahamjuliot.github.io/creepjs/ as "smart enemy".


Example code:

const Hero = require('@ulixee/hero-playground');

(async () => {
  const hero = new Hero();
  await hero.goto('https://kaliiiiiiiiii.github.io/brotector/');
  await new Promise(resolve => setTimeout(resolve, 5000));
  const tab = hero.activeTab;
  const screenshot = await tab.takeScreenshot();
  require("fs").writeFile("out.png", screenshot, 'base64', function(err) {
    console.log(err);
  });
  await hero.close();
})();

贡献者指南