Penetration Testing mailing list archives

Re: Keystroke logging


From: Chuck <chuck.lists () gmail com>
Date: Wed, 6 Jul 2005 17:10:36 -0400

The approach that I use is to set my bash prompt to include the time
and date and then run everything in a screen session.  Screen has the
ability to log everything typed on command lines and all output using
it's -L command line option.  I really like having the output along
with the commands typed, the log is handy to refer to when writing up
findings.  You also get the added ability of being able to detach from
a long running command without killing it.

Screen won't record what happens within a vi session (or other
interactive console program), but if I edit a file, I just cat it
afterwards so that the edited version is included in the log.  I do
the same thing with any files full of IPs to scan, shell scripts, and
the like.

Chuck

On 7/1/05, Aaron J. Bedra <abedra () westervillelibrary org> wrote:
Something to think of,

Yes, most shells have keylogging built in, but most pen-test reports
require you to not only provide keylogging, but also timestamps
(depending on where you are working, sometimes in UTC format), or they
are not accepted as real logs.

Aaron J. Bedra


On Fri, 2005-07-01 at 11:41 +0200, Guillaume Vissian wrote:
Be carefull the history logs only show the common commands input on
the shell, this didn't show everything wrappen on it. Only keyloggers
can do that. If history remember all it would be a major security
failure... For example with shells history logs you can't see the vim
editing sequences, and for sure the password entries. And the real,
and only for me, utility of a keylogger is to log thoses pass entries.
A good keylogger have to, in my mind, be directly implanted in the
kernel, the shells let to much ways to escape from the logs...
A way to search :
http://linux.ittoolbox.com/documents/document.asp?i=2284

Google  is your friend
G.

2005/7/1, Joshua Hamor <josh () cnemedia com>:
Agreed. Most modern shells have history logs. You should be able to save
this text file for your tests.

-J also

Jeff Miller wrote:
I've used bash shell logging before for similar situations.  just  grab
the source and compile with the syslogging option.


On Jun 30, 2005, at 2:36 PM, JB wrote:

I'm wondering if anyone has either a kernel level keystroke logger
for the
Linux 2.6, or a userspace keystroke logger for Linux. As part of our
penetration testing, we are required to give the client a log of all
actions performed - so this would be a good way of logging all linux
commands. Also - if you know of the same sort of tool for windows -  that
would also be appreciated.

-J







Current thread: