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.
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)
Because the tags
c
andc++
?– Isac