viper-framework / viper

Binary analysis and management framework
Other
1.54k stars 353 forks source link

Module Documentation #758

Closed jdubp closed 5 years ago

jdubp commented 5 years ago

I am attempting to add some new modules to Viper and have reviewed the Add New Modules documentation here (https://viper-framework.readthedocs.io/en/latest/customize/index.html), created a sample module in /usr/local/src/viper/viper/modules and ran viper-web, however the module doesn't show as an option in the module dropdown when interacting with a file and the command does not exist when attempting to call it from the CLI.

What am I missing?

Also related, the current MISP module is accessible through the CLI but not the Modules dropdown within a file context. Does something specific have to be done to allow modules to be accessible through the Modules dropdown vs just CLI?

botherder commented 5 years ago

Are you running viper from the local binary? Or did you install it with pip3?

jdubp commented 5 years ago

I installed with pip3

botherder commented 5 years ago

Did you install before or after you added your module?

jdubp commented 5 years ago

Before.

I did just try "sudo pip3 install ." from /usr/local/src/viper and restarted viper-web to see if it would catch the new module, but it didn't.

jdubp commented 5 years ago

Thanks for the assistance. If anyone else runs into the issue, if Viper is installed with pip, new modules must be added to /usr/local/lib/python3.#/dist-packages/viper/modules. Adding modules to /usr/local/src/viper/viper/modules and doing a pip install again does not appear to add them to the actual package directory.