Skip to content

Instantly share code, notes, and snippets.

@0xBruno
Last active October 26, 2025 21:31
Show Gist options
  • Select an option

  • Save 0xBruno/f9a2e5de7a618754a6794ac16c69b8c4 to your computer and use it in GitHub Desktop.

Select an option

Save 0xBruno/f9a2e5de7a618754a6794ac16c69b8c4 to your computer and use it in GitHub Desktop.
Enumerate CefSharp JS to .NET bindings
for (const key of Object.keys(window)) {
const value = window[key];
const type = (value != null && typeof value.toString === 'function')
? value.toString()
: Object.prototype.toString.call(value);
if(type instanceof Promise){
console.log(`${key}: ${await window[key].toString()}`);
}
}
@0xBruno
Copy link
Author

0xBruno commented Oct 26, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment