V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
n0bug
V2EX  ›  问与答

检测系统里可执行文件被执行了

  •  
  •   n0bug · Oct 16, 2015 · 2641 views
    This topic created in 3847 days ago, the information mentioned may be changed or developed.

    举个栗子, 比如 linux 里面输入 ls 命令,系统先读取 ls 的 ELF 。
    然后启动进程,完成 ls 的功能,退出进程。

    我想在 ls 的 ELF 被读取的时候就检测到, 有什么办法吗? 可以自己写一点代码、脚本什么的,但是请给个思路。

    4 replies    2015-10-31 03:51:25 +08:00
    zix
        1
    zix  
       Oct 16, 2015
    如果是命令行执行的程序,应该都会有历史记录吧,像 bash 都是写在 .bash_history 里的,我觉得监控这个文件的写入就 OK 了。
    Comphuse
        2
    Comphuse  
       Oct 16, 2015 via iPhone
    man auditctl
    onlyxuyang
        3
    onlyxuyang  
       Oct 16, 2015 via Android
    改 libc 拦系统调用……
    n0bug
        4
    n0bug  
    OP
       Oct 31, 2015
    @Comphuse 谢谢~ 居然还有这样的工具
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1444 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 16:55 · PVG 00:55 · LAX 09:55 · JFK 12:55
    ♥ Do have faith in what you're doing.