
Strumento offensivo di hooking delle API che utilizza Frida per intercettare le chiamate API di Windows e catturare le credenziali da processi come mstsc, runas, PowerShell, cmd, MobaXterm e prompt UAC.
PyHook è l'implementazione Python del mio progetto SharpHook. Utilizza vari hook API per ottenere le credenziali desiderate.
PyHook usa Frida per iniettare le sue dipendenze nel processo target.
| Processo | Chiamata API | Descrizione | Progresso |
|---|---|---|---|
| mstsc | CredUnPackAuthenticationBufferW | Hook CredUnPackAuthenticationBufferW da mstsc e restituisce nome utente e password | DONE |
| runas | CreateProcessWithLogonW | Hook CreateProcessWithLogonW da runas e restituisce nome utente, password e un nome di dominio. | DONE |
| PowerShell | CreateProcessWithLogonW | Hook CreateProcessWithLogonW da PowerShell e restituisce nome utente, password e un nome di dominio (es. - Start-Process cmd -Credential X). | DONE |
| cmd | RtlInitUnicodeStringEx | Hook RtlInitUnicodeStringEx da cmd e restituisce dati da filtri specifici (es. - "-p", "password" ecc.). | DONE |
| MobaXterm | CharUpperBuffA | Hook CharUpperBuffA da MobaXterm e restituisce credenziali per accessi RDP e SSH. | DONE |
| explorer (Richiesta UAC) | CredUnPackAuthenticationBufferW | Hook CredUnPackAuthenticationBufferW da explorer e restituisce nome utente, password e un nome di dominio. | DONE |

Link al mio post sul blog che tratta questo argomento: https://ilankalendarov.github.io/posts/offensive-hooking