ttlns/brotector

[feature request] -> detect JS tampering

Open

#9 opened on 2024年11月24日

GitHub で見る
 (8 comments) (0 reactions) (0 assignees)JavaScript (15 forks)auto 404
Liesenhancementgood first issuehelp wanted

Repository metrics

Stars
 (284 stars)
PR merge metrics
 (PR metrics pending)

説明

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();
})();

コントリビューターガイド