Skip to content

Instantly share code, notes, and snippets.

@zuriby
Created April 7, 2012 04:15
Show Gist options
  • Save zuriby/2324997 to your computer and use it in GitHub Desktop.
Save zuriby/2324997 to your computer and use it in GitHub Desktop.
<a
href="http://example.com/not/existing/path/with/html/extension.html">
<img
style="width:1px;height:1px;border:0;background:transparent"
src="http://example.com/not/existing/path/with/png/extension.png">
</img>
</a>
<script>
window["mouse_moved_detected"] = 0;
window["$moved"] = function () {
if (window["mouse_moved_detected"] === 0) {
var img = document.createElement('img');
img.setAttribute('src','http://example.com/you-are-my-human.png');
img.setAttribute('style','width:1px;height:1px;border:0;background:transparent');
document.body.appendChild(img);
}
window["mouse_moved_detected"] =1;
}
window["onmousemove"] = window["$moved"];
</script>
Or even
<script>
var _0x4f7e=["\x6D\x6F\x75\x73\x65\x5F\x6D\x6F\x76\x65\x64\x5F\x64\x65\x74\x65\x63\x74\x65\x64","\x24\x6D\x6F\x76\x65\x64","\x69\x6D\x67","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x73\x72\x63","\x68\x74\x74\x70\x3A\x2F\x2F\x65\x78\x61\x6D\x70\x6C\x65\x2E\x63\x6F\x6D\x2F\x79\x6F\x75\x2D\x61\x72\x65\x2D\x6D\x79\x2D\x68\x75\x6D\x61\x6E\x2E\x70\x6E\x67","\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x73\x74\x79\x6C\x65","\x77\x69\x64\x74\x68\x3A\x31\x70\x78\x3B\x68\x65\x69\x67\x68\x74\x3A\x31\x70\x78\x3B\x62\x6F\x72\x64\x65\x72\x3A\x30\x3B\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x3A\x74\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64","\x62\x6F\x64\x79","\x6F\x6E\x6D\x6F\x75\x73\x65\x6D\x6F\x76\x65"];window[_0x4f7e[0]]=0;window[_0x4f7e[1]]=function (){if(window[_0x4f7e[0]]===0){var _0xa78bx1=document[_0x4f7e[3]](_0x4f7e[2]);_0xa78bx1[_0x4f7e[6]](_0x4f7e[4],_0x4f7e[5]);_0xa78bx1[_0x4f7e[6]](_0x4f7e[7],_0x4f7e[8]);document[_0x4f7e[10]][_0x4f7e[9]](_0xa78bx1);} ;window[_0x4f7e[0]]=1;} ;window[_0x4f7e[11]]=window[_0x4f7e[1]];
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment