ttlns/brotector

[feature request] -> detect JS tampering

Open

#9 aberto em 24 de nov. de 2024

Ver no GitHub
 (8 comments) (0 reactions) (0 assignees)JavaScript (15 forks)auto 404
Liesenhancementgood first issuehelp wanted

Métricas do repositório

Stars
 (284 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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

Guia do colaborador