SkillAgentSearch skills...

Syshook

Scriptable syscall tracing

Install / Use

/learn @andrewchambers/Syshook
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

syshook

A tool to run scripts and functions in response to syscalls and other events on a hooked program.

This tool is a WIP, but is intended to allow diagnostic scripts and fault injection tests to be written.

Scripts are written in the Janet programming language.

Examples

hook the 'open-at' syscall

$ syshook \
  -e (sys-enter 257 (eprintf "open-at: path=%s" (arg-string 1))) \
  -- cat ./foobar.txt
open-at: path=.../lib/librt.so.1
open-at: path=.../lib/libc.so.6
...
open-at: path=./foobar.txt
foo!
View on GitHub
GitHub Stars5
CategoryDevelopment
Updated5y ago
Forks0

Languages

C

Security Score

70/100

Audited on Oct 8, 2020

No findings