c99 - Design a keylogger in standard C -


can keylogger created using functions defined in standard c, i.e in c89 or c99, without using api's provided compiler?

the definitive answer no , assuming want know why:

c described in terms of abstract machine. without going details, it's machine doesn't exist c implementation must expose same observable behavior abstract machine. properties of machine function calling "stack"(*) , access linear memory model. hosted environments, add input , output streams.

things abstract machine notably doesn't include concepts of having operating system in place (it should possible implement on many devices possible) or until c11, concept of parallel execution. having concrete input device keyboard out of scope of c abstract machine, knows input streams, not caring data coming from.

what need keylogger place hook code into, might os layer input buffering, keyboard driver or directly hardware (on simple machines old c64, controlling io-registers keyboard matrix). whatever is, c abstract machine can never describe in platform-independent way.

note answer far complete. trying give compact explanation containing necessary key words further research in details interested.

(*) doesn't have stack, it's common implementation.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -