Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. import os, sys
  2. import sys
  3. import thread
  4. import winappdbg
  5. from winappdbg import System
  6. from winappdbg import win32
  7. import pdb
  8.  
  9. system = System()
  10. pid = 0
  11.  
  12. for process in system:
  13. if process.get_filename() == "calc.exe" or process.get_filename() == "C:\\Windows\\system32\\calc.exe":
  14. pid = process.get_pid()
  15.  
  16. if pid != 0:
  17. win32.DebugActiveProcess( pid )
  18. thread.exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement