Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os, sys
- import sys
- import thread
- import winappdbg
- from winappdbg import System
- from winappdbg import win32
- import pdb
- system = System()
- pid = 0
- for process in system:
- if process.get_filename() == "calc.exe" or process.get_filename() == "C:\\Windows\\system32\\calc.exe":
- pid = process.get_pid()
- if pid != 0:
- win32.DebugActiveProcess( pid )
- thread.exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement