Skip to content

Commit

Permalink
Add more plugins (#1700)
Browse files Browse the repository at this point in the history
* Add more plugins

* Update meson.build

* Update depends.sh
  • Loading branch information
kaganisildak authored Jan 31, 2024
1 parent 8d46329 commit f2d6d66
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package/depends.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi

apt-get --quiet --yes install build-essential git wget curl cmake flex bison \
libjson-c-dev autoconf-archive clang python3-dev libsystemd-dev nasm bc \
libx11-dev ninja-build python3-pip meson llvm lld
libx11-dev ninja-build python3-pip meson llvm lld zlib1g-dev

if [ $(apt-cache show gcc-9 2>/dev/null | wc -l) -gt 0 ]; then
apt-get --quiet --yes install gcc-9
Expand Down
81 changes: 73 additions & 8 deletions src/plugins/meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
incdir = include_directories('..', '../..')
zlib_dep = dependency('zlib', required: true)

plugin_sources = [
'plugins.cpp',
Expand Down Expand Up @@ -244,6 +245,61 @@ if get_option('plugin-libhooktest')
config_h.set('ENABLE_PLUGIN_LIBHOOKTEST', 1)
endif


if get_option('plugin-regmon')
plugin_sources += 'regmon/regmon.cpp'
config_h.set('ENABLE_PLUGIN_REGMON', 1)
endif


if get_option('plugin-procmon')
plugin_sources += 'procmon/procmon.cpp'
plugin_sources += 'procmon/linux.cpp'
plugin_sources += 'procmon/linux_utils.cpp'
plugin_sources += 'procmon/privileges.cpp'
plugin_sources += 'procmon/win.cpp'
plugin_sources += 'procmon/winnt.cpp'
config_h.set('ENABLE_PLUGIN_PROCMON', 1)
endif


if get_option('plugin-socketmon')
plugin_sources += 'socketmon/socketmon.cpp'
config_h.set('ENABLE_PLUGIN_SOCKETMON', 1)
endif


if get_option('plugin-ssdtmon')
plugin_sources += 'ssdtmon/ssdtmon.cpp'
config_h.set('ENABLE_PLUGIN_SSDTMON', 1)
endif


if get_option('plugin-procdump')
plugin_sources += 'procdump/procdump.cpp'
plugin_sources += 'procdump/writer.cpp'
deps += zlib_dep
config_h.set('ENABLE_PLUGIN_PROCDUMP', 1)
endif


if get_option('plugin-rpcmon')
plugin_sources += 'rpcmon/rpcmon.cpp'
config_h.set('ENABLE_PLUGIN_RPCMON', 1)
endif


if get_option('plugin-tlsmon')
plugin_sources += 'tlsmon/tlsmon.cpp'
config_h.set('ENABLE_PLUGIN_TLSMON', 1)
endif


if get_option('plugin-windowmon')
plugin_sources += 'windowmon/windowmon.cpp'
config_h.set('ENABLE_PLUGIN_WINDOWMON', 1)
endif

summary({
'syscalls': get_option('plugin-syscalls'),
'poolmon': get_option('plugin-poolmon'),
Expand Down Expand Up @@ -271,16 +327,25 @@ summary({
'procmon': get_option('plugin-procmon'),
'hidevm': get_option('plugin-hidevm'),
'ptracemon': get_option('plugin-ptracemon'),
'ebpfmon' : get_option('plugin-ebpfmon'),
'memaccessmon' : get_option('plugin-memaccessmon'),
'unixsocketmon' : get_option('plugin-unixsocketmon'),
'etwmon' : get_option('plugin-etwmon'),
'ipt' : get_option('plugin-ipt'),
'rebootmon' : get_option('plugin-rebootmon'),
'linkmon' : get_option('plugin-linkmon'),
'libhooktest' : get_option('plugin-libhooktest'),
'ebpfmon': get_option('plugin-ebpfmon'),
'memaccessmon': get_option('plugin-memaccessmon'),
'unixsocketmon': get_option('plugin-unixsocketmon'),
'etwmon': get_option('plugin-etwmon'),
'ipt': get_option('plugin-ipt'),
'rebootmon': get_option('plugin-rebootmon'),
'linkmon': get_option('plugin-linkmon'),
'libhooktest': get_option('plugin-libhooktest'),
'regmon': get_option('plugin-regmon'),
'procmon': get_option('plugin-procmon'),
'socketmon': get_option('plugin-socketmon'),
'ssdtmon': get_option('plugin-ssdtmon'),
'procdump': get_option('plugin-procdump'),
'rpcmon': get_option('plugin-rpcmon'),
'tlsmon': get_option('plugin-tlsmon'),
'windowmon': get_option('plugin-windowmon'),
}, section: 'Plugins (-Dplugin-<x>)')


summary({
'filedelete': get_option('plugin-filedelete'),
}, section: 'Deprecated plugins')
Expand Down

0 comments on commit f2d6d66

Please sign in to comment.