kaliiiiiiiiii / brotector

An advanced antibot for webdrivers
https://kaliiiiiiiiii.github.io/brotector/
MIT License
103 stars 4 forks source link

[feature request] JS execution detection #6

Closed kaliiiiiiiiii closed 1 month ago

kaliiiiiiiiii commented 1 month ago
kaliiiiiiiiii commented 1 month ago

(snippets relevant here, excerpts) execute_script.js

function executeScript(script, args) {
    const Promise = window.cdc_adoQpoasnfa76pfcZLmcfl_Promise || window.Promise;
    return Promise.resolve(f.apply(null, args));
}

execute_async_script.js

async function executeAsyncScript(script, args, isUserSupplied, timeout) {
  const Promise = window.cdc_adoQpoasnfa76pfcZLmcfl_Promise || window.Promise;
  let scriptResult = new Function(script).apply(null, args);
}
kaliiiiiiiiii commented 1 month ago

(other potentially detectable snippets, excerpts) focus.js

elem.focus()

=> e.isTrusted get_element_location.js

element.scrollIntoView({behavior: "instant",
                            block: "end",
                            inline: "nearest"});
  }

=> fingerprint stack & params

Atoms compiled patch source