This is an advanced keylogger written in Python using the pynput library. It records keystrokes and stores them in both JSON and text file formats. It can optionally send the recorded data remotely to a specified server.
- Records keystrokes and captures key press events.
- Supports handling special keys such as Enter, Tab, Space, Backspace, Shift, Ctrl, and Esc.
- Stores the captured keystrokes in JSON and text file formats.
- Optionally sends the recorded data remotely to a server using HTTP POST requests.
The following dependencies are required to run the keylogger:
pynput: Used for monitoring and capturing keyboard events.json: Used for serializing/deserializing data to/from JSON format.requests: Used for sending HTTP POST requests (required only for remote data transmission).
-
Install the required dependencies by running the following command:
pip install pynput requests -
Update the desired configuration parameters in the code:
- Modify the
ip_addressandport_numbervariables if you want to send the recorded data remotely to a server. - Adjust the
time_intervalvariable to specify the interval between each data transmission (in seconds).
- Modify the
-
Run the script using the following command:
python keylogger.py -
The keylogger will start capturing keystrokes. Press the Escape key (
Esc) to stop the keylogger. -
The captured keystrokes will be stored in the
adv_logs.jsonfile (in JSON format) and theadv_log.txtfile (in plain text format). -
If you have enabled remote data transmission, the keylogger will send the recorded data to the specified server at regular intervals.
contact developer: aadarshmourya16@gmail.com