mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-09-14 14:06:44 +08:00

- 实现Windows键盘Hook机制,支持低级键盘事件捕获 - 实现Linux输入设备监听,支持/dev/input/eventX设备读取 - 实现macOS Core Foundation事件监听,支持CGEventTap - 添加键盘记录配置参数:-keylog-output和-keylog-duration - 修复Windows消息循环阻塞问题,改用PeekMessage非阻塞模式 - 支持跨平台键盘输入捕获和文件输出 - 集成到FScan本地插件系统,支持-localplugin keylogger调用
28 lines
850 B
Go
28 lines
850 B
Go
// +build !windows,!linux,!darwin
|
||
|
||
package keylogger
|
||
|
||
import (
|
||
"context"
|
||
"fmt"
|
||
)
|
||
|
||
// checkLinuxRequirements 检查Linux特定要求(其他平台的空实现)
|
||
func (p *KeyloggerPlugin) checkLinuxRequirements() error {
|
||
return fmt.Errorf("不支持的平台")
|
||
}
|
||
|
||
// checkDarwinRequirements 检查Darwin特定要求(其他平台的空实现)
|
||
func (p *KeyloggerPlugin) checkDarwinRequirements() error {
|
||
return fmt.Errorf("不支持的平台")
|
||
}
|
||
|
||
// startLinuxKeylogging 启动Linux键盘记录(其他平台的空实现)
|
||
func (p *KeyloggerPlugin) startLinuxKeylogging(ctx context.Context) error {
|
||
return fmt.Errorf("不支持的平台")
|
||
}
|
||
|
||
// startDarwinKeylogging 启动Darwin键盘记录(其他平台的空实现)
|
||
func (p *KeyloggerPlugin) startDarwinKeylogging(ctx context.Context) error {
|
||
return fmt.Errorf("不支持的平台")
|
||
} |