Skip to content

Instantly share code, notes, and snippets.

@weizman
Created September 1, 2021 05:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weizman/84ec8cf91a5a3e8a8e6f168d6a750060 to your computer and use it in GitHub Desktop.
Save weizman/84ec8cf91a5a3e8a8e6f168d6a750060 to your computer and use it in GitHub Desktop.
function malicious() {
const detect = (function(){
const dummy = function(){};
dummy.toString = () => {
while (1) {}
};
return dummy;
}());
// do a malicious action
if (window.stealUserCookies) window.stealUserCookies();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment