How shehzade/peeping-tom works
Peeping-tom is a Windows keystroke-monitoring client paired with a Python listener. Its documented flow is keystroke capture, periodic encrypted callback, server-side decryption, and log collection; the server also provides key generation. The sampled client code shows startup and AES encryption, while the README documents the callback and server workflow. Keyboard-hook internals and server request handling were not excerpted, so those connections are shown only where documented, with evidence limits noted in the graph.
Main entry points: peeping-client.cpp Client startup · toms_server.py Server listener · APIHook.h Keyboard hook · Exfiltrate.h HTTP callback
Components 16
Windows client
- Client startup
peeping-client/peeping-client.cpp - Keyboard hook
peeping-client/APIHook.h - Key capture
peeping-client/Keyboard.h - Callback timer
peeping-client/Timer.h - HTTP callback
peeping-client/Exfiltrate.h
Encryption
- AES encryption
peeping-client/Transformer.h - Crypto++ primitives
peeping-client/crypto-headers
Python server
- Server listener
toms-server/toms_server.py - Log decryption
toms-server/decryption.py - Log collection
toms-server/collection.py - Key generation
toms-server/key_generation.py
Client support
- Client utilities
peeping-client/Auxiliary.h - File operations
peeping-client/IO.h
Other components
- Target system
- Public tunnel
- Keylog file
Connections 18
- Target system → Keyboard hook: receives key events
- Client startup → Keyboard hook: installs hook
peeping-client/peeping-client.cpp - Keyboard hook → Key capture: captures keys
peeping-client/APIHook.h - Keyboard hook → Callback timer: starts callback timer
peeping-client/APIHook.h - Callback timer → HTTP callback: triggers callback
peeping-client/Exfiltrate.h - HTTP callback → AES encryption: encrypts payload
- AES encryption → Crypto++ primitives: uses primitives
peeping-client/Transformer.h - Client startup → AES encryption: sets encryption key
peeping-client/peeping-client.cpp - HTTP callback → Public tunnel: sends callback
- Public tunnel → Server listener: forwards request
- Server listener → Log decryption: uses decryption
toms-server/toms_server.py - Server listener → Log collection: routes received logs
toms-server/toms_server.py - Log decryption → Log collection: provides plaintext logs
- Log collection → Keylog file: writes logs
- Server listener → Key generation: offers keygen mode
toms-server/toms_server.py - Client startup → Client utilities: uses utilities
peeping-client/peeping-client.cpp - Client startup → File operations: creates app-data directory
peeping-client/peeping-client.cpp - Client utilities → File operations: uses file operations
peeping-client/Auxiliary.h