Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] JS execution detection #6

Closed
2 tasks done
kaliiiiiiiiii opened this issue Sep 19, 2024 · 2 comments
Closed
2 tasks done

[feature request] JS execution detection #6

kaliiiiiiiiii opened this issue Sep 19, 2024 · 2 comments
Labels
enhancement New feature or request selenium detection related to selenium//chromedriver

Comments

@kaliiiiiiiiii
Copy link
Owner

kaliiiiiiiiii commented Sep 19, 2024

  • proxy hook Function.prototype.apply
  • narrow down to selenium-specific sighature
@kaliiiiiiiiii kaliiiiiiiiii added selenium detection related to selenium//chromedriver enhancement New feature or request labels Sep 19, 2024
@kaliiiiiiiiii
Copy link
Owner Author

kaliiiiiiiiii commented Sep 19, 2024

(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
Copy link
Owner Author

kaliiiiiiiiii commented Sep 19, 2024

(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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request selenium detection related to selenium//chromedriver
Projects
None yet
Development

No branches or pull requests

1 participant