Log in

View Full Version : killare un handle con handle.exe



Rayvaughan
7th June 2010, 18:54
allora non so se avete presente processexplorer.exe ed handle.exe, 2 programmini gratis scaricabili qui (http://technet.microsoft.com/it-it/sysinternals/bb795533(en-us).aspx)

il mio problema è che non riesco a killare un handle usando handle.exe da riga di comando

ad esempio usando processexplorer ed aprendo una qualsiasi finestra di notepad vedrete che nell'elenco degli handle del processo notepad.exe pid blabla vi è il seguente handle: HKCU\Software\Microsoft\Windows\CurrentVersion\Exp lorer\FileExts o n'altra roba, insomma l'elenco potrebbe cambiare dal vostro SO, ma il concetto è quello

e lanciando handle.exe non me lo chiude, o meglio non riesco a scrivere la stringa giusta

sintassi:
usage: handle [[-a [-l]] [-u] | [-c <handle> [-y]] | [-s]] [-p <process>|<pid>][name]

-a Dump all handle information.
-l Just show pagefile-backed section handles.
-c Closes the specified handle (interpreted as a hexadecimal number).
You must specify the process by its PID.
WARNING: Closing handles can cause application or system instability.
-y Don't prompt for close handle confirmation.
-s Print count of each type of handle open.
-u Show the owning user name when searching for handles.
-p Dump handles belonging to process (partial name accepted).
name Search for handles to objects with <name> (fragment accepted).


ovviamente dovrò usare il -c, ma "Closes the specified handle (interpreted as a hexadecimal number" come faccio ad inserire il valore esadecimale se non lo conosco e quindi a chiudere l'handle?

Rayvaughan
7th June 2010, 19:09
risolto pd :rain: in pratica è l'hex della lista che ottengo di tutti gli handle legati a quel pid... 4 se il primo 8 se il secondo C se il terzo... GG