Skip to content

Latest commit

 

History

History

keylogger

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

按键记录

gradient.shapefactory.co


bar chart every day


heatmap chart every hour in weeks


heatmap chart comparison of several weeks

柱状图 每天按键数据

热力图 时间段内分布数据

热力图 多个星期横向对比

Install

  1. make down
  2. go install
    • 指定版本信息 go install -ldflags "-X main.buildVersion=时间-版本号"

Redis

全局

  • string keyboard:last-event
  • zset keyboard:total
    • value: 年:月:日 score: 当日按键总数

每日滚动数据

  • zset keyboard:年:月:日:detail
    • value: 时间戳(微秒) score: keyCode
  • zset keyboard:年:月:日:rank
    • value: keyCode score: 当日按键数

Version

  • 1.2.0 move detail data from redis to leveldb, reduce 90% memory usage
  • 1.1.0 fix memory leak
  • 1.0.9 fix 00:00 cache problem
  • 1.0.8 transfer the task of calculating KPM to the listening input device process
  • 1.0.6 add interactive select device
  • 1.0.4 remove thread pool(memory leak)
  • 1.0.3 import thread pool
  • 1.0.2 GA

Debug

go tool pprof -inuse_space http://localhost:8891/debug/pprof/heap go tool pprof -inuse_space -cum -svg http://localhost:8891/debug/pprof/heap > heap_inuse.svg

注意: root用户监听device 和 非root用户的逻辑 数据存储是不一样的

TODO

  • gtk 窗口有内存泄漏的问题,随着刷新次数的增多,内存也随之增长
    • 使用timeoutAdd 解决
  1. webview vs electron