|
| 1 | +import ctypes |
| 2 | + |
| 3 | +def CheckTitles(): |
| 4 | + user32 = ctypes.windll.user32 |
| 5 | + EnumWindows = user32.EnumWindows |
| 6 | + EnumWindowsProc = ctypes.WINFUNCTYPE(ctypes.c_bool, ctypes.POINTER(ctypes.c_int), ctypes.POINTER(ctypes.c_int)) |
| 7 | + GetWindowText = user32.GetWindowTextW |
| 8 | + GetWindowTextLength = user32.GetWindowTextLengthW |
| 9 | + IsWindowVisible = user32.IsWindowVisible |
| 10 | + |
| 11 | + forbidden_titles = { |
| 12 | + "proxifier", "graywolf", "extremedumper", "zed", "exeinfope", "dnspy", |
| 13 | + "titanHide", "ilspy", "titanhide", "x32dbg", "codecracker", "simpleassembly", |
| 14 | + "process hacker 2", "pc-ret", "http debugger", "Centos", "process monitor", |
| 15 | + "debug", "ILSpy", "reverse", "simpleassemblyexplorer", "process", "de4dotmodded", |
| 16 | + "dojandqwklndoqwd-x86", "sharpod", "folderchangesview", "fiddler", "die", "pizza", |
| 17 | + "crack", "strongod", "ida -", "brute", "dump", "StringDecryptor", "wireshark", |
| 18 | + "debugger", "httpdebugger", "gdb", "kdb", "x64_dbg", "windbg", "x64netdumper", |
| 19 | + "petools", "scyllahide", "megadumper", "reversal", "ksdumper v1.1 - by equifox", |
| 20 | + "dbgclr", "HxD", "monitor", "peek", "ollydbg", "ksdumper", "http", "wpe pro", "dbg", |
| 21 | + "httpanalyzer", "httpdebug", "PhantOm", "kgdb", "james", "x32_dbg", "proxy", "phantom", |
| 22 | + "mdbg", "WPE PRO", "system explorer", "de4dot", "X64NetDumper", "protection_id", |
| 23 | + "charles", "systemexplorer", "pepper", "hxd", "procmon64", "MegaDumper", "ghidra", "xd", |
| 24 | + "0harmony", "dojandqwklndoqwd", "hacker", "process hacker", "SAE", "mdb", "checker", |
| 25 | + "harmony", "Protection_ID", "PETools", "scyllaHide", "x96dbg", "systemexplorerservice", |
| 26 | + "folder", "mitmproxy", "dbx", "sniffer", "Process Hacker", "Process Explorer", |
| 27 | + "Sysinternals", "www.sysinternals.com", "binary ninja" |
| 28 | + } |
| 29 | + |
| 30 | + |
| 31 | + def foreach_window(hwnd, lParam): |
| 32 | + length = GetWindowTextLength(hwnd) |
| 33 | + buff = ctypes.create_unicode_buffer(length + 1) |
| 34 | + GetWindowText(hwnd, buff, length + 1) |
| 35 | + title = buff.value |
| 36 | + |
| 37 | + if IsWindowVisible(hwnd) and title.lower() in forbidden_titles: |
| 38 | + return True |
| 39 | + return False |
| 40 | + |
| 41 | + found_forbidden = EnumWindows(EnumWindowsProc(foreach_window), 0) |
| 42 | + return found_forbidden |
0 commit comments