Skip to Content
Python for Offensive PenTest
book

Python for Offensive PenTest

by Hussam Khrais
April 2018
Intermediate to advanced content levelIntermediate to advanced
176 pages
4h 16m
English
Packt Publishing
Content preview from Python for Offensive PenTest

Antivirus free keylogger

In this section, we will code a simple software keylogger, purely in Python. To do so, we will be using a library called pyHook. The pyHook library wraps the low-level mouse and keyboard hooks in Windows. As per the pyHook documentation, any application that wishes to receive notification from a global input event must have a Windows message pump. For this, we need another library, called pywin.

So, let's start by installing these libraries.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python Penetration Testing Cookbook

Python Penetration Testing Cookbook

Rejah Rehim

Publisher Resources

ISBN: 9781788838979Supplemental Content