PyHook – An Offensive API Hooking Tool Written In Python Designed To Catch Various Credentials Within The API Call

PyHook 1 Demo 754513

PyHook is the python implementation of my SharpHook project, It uses various API hooks in order to give us the desired credentials.

PyHook Uses frida to inject it’s dependencies into the target process

Supported Processes

ProcessAPI CallDescriptionProgress
mstscCredUnPackAuthenticationBufferWThis will hook into mstsc and should give you Username and PasswordDONE
runasCreateProcessWithLogonWThis will hook into runas and should give you Username, Password and the domain nameDONE
cmdRtlInitUnicodeStringExThis should hook into cmd and then would be able to filter keywords like: PsExec,password etc..DONE
MobaXtermCharUpperBuffAThis will hook into MobaXterm and should give you credentials for SSH and RDP loginsDONE
explorer (UAC Prompt)CredUnPackAuthenticationBufferWThis will hook into explorer and should give you Username, Password and the Domain name from the UAC PromptDONE

Link my blog post covering this topic: https://ilankalendarov.github.io/posts/offensive-hooking

i9bydF92nT4

click here to read full Article

Read More on Pentesting Tools

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *