]> git.scottworley.com Git - keystroke-timestamps/log
keystroke-timestamps
12 years agoMerge
Scott Worley [Sun, 6 Jul 2014 05:51:16 +0000 (22:51 -0700)]
Merge

12 years agoSection header comments
Scott Worley [Sun, 6 Jul 2014 05:07:42 +0000 (22:07 -0700)]
Section header comments

12 years agoAllow the output file to be specified
Scott Worley [Sun, 6 Jul 2014 05:07:23 +0000 (22:07 -0700)]
Allow the output file to be specified

12 years agoRename open_fd to device_fd
Scott Worley [Sun, 6 Jul 2014 04:53:54 +0000 (21:53 -0700)]
Rename open_fd to device_fd

12 years agoSkip lines that are greater than 67767976233561595
Scott Worley [Sat, 31 May 2014 18:06:13 +0000 (11:06 -0700)]
Skip lines that are greater than 67767976233561595

Sometimes this happens if keystroke-timestamps is killed without
flushing, such as by SIGKILL or loss of power.  When this happens,
it can write a partial line.  When the next run starts up, it
appends a timestamp to the partial line, resulting in a timestamp
too large for awk to process.

GNU awk's end-of-time behavior:

$ f() { awk '{ print strftime("%F %T", $1) }' <<< "$1"; }

$ f 67767976233561595
2147483647-12-31 23:59:52
$ f 67767976233561596
-2147483648-01-01 00:00:00

$ f 67768036191705595
-2147481749-12-31 23:59:52
$ f 67768036191705596
awk: cmd. line:1: (FILENAME=- FNR=1) fatal error: internal error
Aborted

12 years agoSpecify time_fmt more succinctly
Scott Worley [Sat, 31 May 2014 18:05:12 +0000 (11:05 -0700)]
Specify time_fmt more succinctly

12 years agoAllow the log file to be specified as an argument
Scott Worley [Sat, 31 May 2014 18:04:37 +0000 (11:04 -0700)]
Allow the log file to be specified as an argument

12 years agoDon't copy the device argument
Scott Worley [Fri, 4 Apr 2014 08:38:20 +0000 (01:38 -0700)]
Don't copy the device argument

http://www.gnu.org/software/libc/manual/html_node/Using-Getopt.html
says this is ok.

12 years agoMerge branch 'master' of https://github.com/chkno/keystroke-timestamps
Scott Worley [Fri, 4 Apr 2014 08:18:12 +0000 (01:18 -0700)]
Merge branch 'master' of https://github.com/chkno/keystroke-timestamps

12 years agoUse a glob as the default --device: *kbd*
Scott Worley [Thu, 26 Dec 2013 09:03:53 +0000 (01:03 -0800)]
Use a glob as the default --device: *kbd*

12 years agoGlob-expand --device
Scott Worley [Thu, 26 Dec 2013 09:03:25 +0000 (01:03 -0800)]
Glob-expand --device

12 years agoUse the file descriptors from select
Scott Worley [Thu, 26 Dec 2013 08:47:47 +0000 (00:47 -0800)]
Use the file descriptors from select

12 years agoMake EOF fatal
Scott Worley [Thu, 26 Dec 2013 08:44:55 +0000 (00:44 -0800)]
Make EOF fatal

12 years agoUse select() to wait for data
Scott Worley [Thu, 26 Dec 2013 08:34:45 +0000 (00:34 -0800)]
Use select() to wait for data

In preparation for handling multiple inputs.

12 years agoPrint usec timestamps correctly
Scott Worley [Thu, 26 Dec 2013 07:55:28 +0000 (23:55 -0800)]
Print usec timestamps correctly

Don't drop zeros following the decimal point.

12 years agoSpecify keyboard device as an option
Scott Worley [Thu, 26 Dec 2013 07:54:06 +0000 (23:54 -0800)]
Specify keyboard device as an option

12 years agoParse options with getopt instead of strcmp
Scott Worley [Thu, 26 Dec 2013 07:17:28 +0000 (23:17 -0800)]
Parse options with getopt instead of strcmp

12 years agoAdd a script to show gaps
Scott Worley [Fri, 20 Sep 2013 15:33:31 +0000 (08:33 -0700)]
Add a script to show gaps

12 years agoAn example consumer of keystroke timing data
Scott Worley [Thu, 5 Sep 2013 07:58:13 +0000 (00:58 -0700)]
An example consumer of keystroke timing data

12 years agoOnly print to-the-second resolution by default.
Scott Worley [Thu, 5 Sep 2013 05:06:29 +0000 (22:06 -0700)]
Only print to-the-second resolution by default.

Put microseconds behind a flag.

This makes it harder to do timing analysis on the log file to try to
turn this into a keylogger.

(More precise timing information is still available to an on-line attack
by watching the flush timings or by watching the CPU usage and run state
of the process.)

12 years agoSort includes
Scott Worley [Thu, 5 Sep 2013 05:03:40 +0000 (22:03 -0700)]
Sort includes

12 years agoAdd proper error reporting for open failures
Scott Worley [Wed, 4 Sep 2013 18:04:58 +0000 (11:04 -0700)]
Add proper error reporting for open failures

12 years agoInitial version
Scott Worley [Wed, 4 Sep 2013 18:04:37 +0000 (11:04 -0700)]
Initial version