What I want to do is open up to check if a process is open, view the thread list, identify it by the Start Address, and end a thread specific to the process. I can do it manually by the processhacker, but I need a script for it.
Itriedtomakeapython,becauseitisthelanguagethatIammoreaccustomedto,Ievenmanagedtolistthethreadsoftheprocess,butIcannotfindtheStartAddressorfinishthespecificthread.Woulditbepossibletodothisinpython?Ifnot,withwhatlanguageshouldIdoit?Andhow?
Inpythontolistthreadswouldbesomethinglikethis
importpsutilPROCNAME="processo.exe"
for proc in psutil.process_iter():
if proc.name() == PROCNAME:
threads = psutil.Process(proc.pid)
for thread in threads.threads():
print(thread)