fsmon: monitor filesystem on iOS / OS X / Android / FirefoxOS / Linux
fsmon
FileSystem Monitor utility that runs on Linux, Android, iOS, and OSX.
Backends
fsmon filesystem information is taken from different backends depending on the operating system and apis available.
This is the list of backends that can be listed with fsmon -L
:
- inotify (linux / android)
- fanotify (linux > 2.6.36 / android with custom kernel)
- devfsev (osx /dev/fsevents – requires root)
- kqueue (xnu – requires root)
- kdebug (bsd?, xnu – requires root)
- fsevapi (osx filesystem monitor api)
Install
fsmon is a portable tool. It works on iOS, OSX, Linux, and Android (x86, arm, arm64, mips)
git clone https://github.com/nowsecure/fsmon.git
Linux
$ make
OSX + iOS fatbin
$ make
iOS
$ make ios
Android
$ make android NDK_ARCH=<ARCH> ANDROID_API=<API>
To get fsmon installed system-wide just type:
$ make install
Changing the installation path…
$ make install PREFIX=/usr DESTDIR=/
Use
The tool retrieves file system events from a specific directory and shows them in colorful format or in JSON.
It is possible to filter the events happening from a specific program name or process id (PID).
Copyright (c) 2024 NowSecure, Inc
Source: https://github.com/nowsecure/