ttlns/brotector

[feature request] -> detect JS tampering

Open

#9 aperta il 24 nov 2024

Vedi su GitHub
 (8 commenti) (0 reazioni) (0 assegnatari)JavaScript (15 fork)auto 404
Liesenhancementgood first issuehelp wanted

Metriche repository

Star
 (284 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor