qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Keyboard contents in QEMU log


From: Blue Swirl
Subject: Re: [Qemu-devel] Keyboard contents in QEMU log
Date: Sun, 20 Apr 2008 09:50:02 +0300

On 4/20/08, Justin King <address@hidden> wrote:
> I am a CS graduate student at the University of Illinois working on a
> research project using QEMU.  I am effectively looking to use QEMU as a
> keylogger, that is, I would like to type keystrokes into a QEMU VM, and have
> the keys recorded and output in some sort of log.
>
>  I have been playing with the log functionality of QEMU, but have been
> unable to reconstruct a sequence of keyboard events.  The abbreviated
> version of what I need to happen is as follows:
>
>  1. User hits key
>  2. Keystroke handled by code in hw/pckbd.c
>  3. Keystroke (theoretically) causes a "hardware" interrupt (do_interrupt()
> called by cpu-exec.c), interrupt recorded in log.

At this point, the keystroke is not yet read by the CPU, so the
interrupt log won't contain the keystroke.

>  4. Log analysis tool (written by myself) can extract keystroke.
>
>  I am running QEMU 0.9.1 on a Kubuntu 7.04 desktop host.  The VM has an
> installation of Ubuntu server 7.10, and it seems to run perfectly.
>
>  Does the logging functionality of QEMU record keystrokes?  If so, where
> should I be looking in the logs to find this information?

No, but you can enable DEBUG_KBD in pckbd.c and recompile. The
keystroke (among other keyboard events) will be printed to stdout.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]