top of page
Writer's pictureVlad

Captain Hook - Keylogger program

Keylogger that hooks throught the user's keystrokes.


Hello World! Welcome to another blog. In this post I'll be discussing a program I used to record a compromised host user's keystroke. This utilized python's own pyHook. This library includes callback from mouse and keyboard events in Windows. This utilized python applications event handlers for user input such as left mouse down, left mouse up, key down, etc. and set the keyboard and/or mouse hook.


Libraries used

ctypes - for Windows process integration and involvement of useful dlls for keylogging; user32,kernel32 and psapi.

pythoncom - for pumpmessages methods in the Win32 Extension page, with this program waits for Windows event, and executes process.

pyHook - Manages user keystrokes.

win32clipboard - Used this for manipulating Windows Clipboard API.

sys - utilized this for exit process.



Features:

Once program executed, program will hook on the user's keystroke and display it on the screen. This also includes the PID, application name and title of the program the user used while typing. Events is in sequential order, once finished all the keylogs will be saved in a text file for reference.


Once launched, program will wait for the user's keystrokes.

So let's say I launched google on chrome and typed cuckoo on searchbar, below would be the output.







Here's another scenerio, with above image.

1) With PID 2508 - I launched my keylog program

2) User then went to nba website to check on some post about San Antonio Spurs.

3) Then went back to my progam by Lmenu and tab.

4)By lmenu and tab, once again I went back to chrome and click on NBA store page.

5-6)Same with 3 and 4

7)User then clicked on another post by lmenu + tab, post about Kawhi Leonard

8) lmenu + tab once more, to check on the program.

9) Then went back, to go to youtube by Chrome. Clicked on the video "Why you shouldn't drive slowly in the left lane" and typed on comment "sample comment".



That would end my post. Keylogger is indeed a dangerous program that would not only steal your your critical information, it can also destroy all the things you worked hard for. That is why folks, beware of malware! Let's cleanup =)

90 views0 comments

Comments


LET'S TAKE IT TO THE NEXT LEVEL!

bottom of page