Get the Start Address from a process thread and finish it individually

Asked

Viewed 46 times

1

What I want to do is open up to check if a process is open, see the thread list, identify it by Start Address, and finish a process-specific thread. I can do it manually by the processhacker, but I need a script for that.

inserir a descrição da imagem aqui

I tried to make a python, because it’s the language I’m most used to, I managed to list the threads of the process, but I can’t find the Start Address nor finish the specific thread. Is it possible to do this in python? If not, what language should I do it in? And how?

In python to list threads would look something like this

import psutil

PROCNAME = "processo.exe"
for proc in psutil.process_iter():
    if proc.name() == PROCNAME:
         threads = psutil.Process(proc.pid)
         for thread in threads.threads():
             print(thread)
  • 1

    Because the tags c and c++ ?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.