Giter Site home page Giter Site logo

Comments (3)

snortadmin avatar snortadmin commented on September 3, 2024

It looks like your --plugin-path arg is not including the install directory for your plugin. You can specify a colon separated list with that arg and include the install path of your plugin.

You can check that the plugin is loaded like this:

$ snort --warn-all --plugin-path <so_path>:<cusotm_path> --list-plugins

Be sure to put --list-plugins last as shown. The warnings will reveal any plugin that fails to load due to missing symbols.

from snort3_extra.

Jaegersan avatar Jaegersan commented on September 3, 2024

Hi,
I received these two warnings:

WARNING: /home/jaeger/snort3_extra/build/src/daqs/daq_socket/daq_socket.so: undefined symbol: snort_plugins (/home/jaeger/snort3_extra/build/src/daqs/daq_socket/daq_socket.so)
WARNING: /home/jaeger/snort3_extra/build/src/tp_appid/tp_appid_example.so: undefined symbol: snort_plugins (/home/jaeger/snort3_extra/build/src/tp_appid/tp_appid_example.so)

After that a bunch of modules/files were listed. Even my custom inspector was there.
inspector::custom_plugin v0 /home/jaeger/snort3_extra/build/src/inspectors/custom_plugin/custom_plugin.so

I updated my command to see if I receive any warning in the actual run.
sudo /usr/local/bin/snort --warn-all -c /usr/local/etc/snort/snort.lua -r ~/pcap_dir/test.pcap -l /var/log/snort --plugin-path /usr/local/etc/so_rules/:/home/jaeger/snort3_extra

And right at the beginning when all the inspectors were loaded I got this warning:
"WARNING: /usr/local/etc/snort/snort.lua: unknown table custom_plugin"

In snort.lua I just added this to the inspector section: custom_plugin = { }.
Is this not the right way to do this?

from snort3_extra.

Jaegersan avatar Jaegersan commented on September 3, 2024

Update:
When I change the order from
--plugin-path /usr/local/etc/so_rules/:/home/jaeger/snort3_extra
to
--plugin-path /home/jaeger/snort3_extra:/usr/local/etc/so_rules/ it actually works.

from snort3_extra.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.