C Keylogger or process attachment

C Keylogger or process attachment

Post by eggscrambler on Mon Aug 20, 2012 3:19 am
([msg=68846]see C Keylogger or process attachment[/msg])

I just need help on how to either attach my program to another process or how to make a UI that is not seen and allows people to type in other windows while mine logs the keys. Any help would be appriciated. I understand how to log the keys but not in a way that the user would not notice.
eggscrambler
New User
New User
 
Posts: 16
Joined: Thu Apr 28, 2011 11:30 pm
Blog: View Blog (0)


Re: C Keylogger or process attachment

Post by ghost107 on Sat Sep 01, 2012 5:20 pm
([msg=69090]see Re: C Keylogger or process attachment[/msg])

For attaching to another process you should read on this windows API:
OpenProcess()
VirtualAlloc()
ReadProcessMemory, WriteProcessMemory(This functions are detectable by the AV, so instead use VirtualProtect + memcpy, memset)
CloseHandle()

Now for For Injecting a DLL:
LoadLibrary()
GetProcAddress()
FreeLibrary()

To make a program that it is not seen you should learn to hook NtQuerySystemInformation, to remove your program from process list.

If hooking NtQuerySystemInformation is too hard you could always just make your application invisible or don't create a window,this way you will only be visible into the system processes.

To read keyboard keys there are some windows API like GetAsyncKeyState().
ghost107
Poster
Poster
 
Posts: 132
Joined: Wed Jul 02, 2008 7:57 am
Blog: View Blog (0)


Re: C Keylogger or process attachment

Post by henson on Tue Sep 04, 2012 9:28 pm
([msg=69134]see Re: C Keylogger or process attachment[/msg])

A little hard for me to understand, :roll:
If you want to attach the keylogger to other program, don't forget to disable your AVG. Or you can consider to directly install an invisiable keylogger.
henson
New User
New User
 
Posts: 7
Joined: Tue Sep 04, 2012 8:16 pm
Blog: View Blog (0)



Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests