Re: [sleuthkit-developers] Autopsy 3 module development: Loading an external ingest module from net
Brought to you by:
carrier
From: Brian C. <ca...@sl...> - 2013-08-23 01:54:25
|
Hi Petter, Are you using the released version of Autopsy as a platform or source? There were problems doing this from the released 3.0.6 version, but it should be fixed if you are doing it from the latest github repo. I'll update those docs to make sure that it is clear that the reboot reference is if the module is being installed after packaging. This page is more relevant at the bottom for development. http://www.sleuthkit.org/autopsy/docs/api-docs/mod_dev_page.html brian On Aug 22, 2013, at 5:28 PM, Petter Christian Bjelland <pet...@hi...> wrote: > Hi, > > Is there a correct way to dynamically load an external ingest module into Autopsy 3? What I want to do is to right-click on my module in netbeans and hit "run". > > Without any modifications Autopsy does not list the module under "Add Data Source" -> "Configure Ingest Modules". Reinstalling the .nbm for each update is not really an option. > > I've made this solution using the @OnStart annotation which checks if the module is loaded in the IngestManager or not, but it doesn't feel right. > > @OnStart > public class MyModuleStarter implements Runnable { > > @Override > public void run() { > List<IngestModuleAbstractFile> modules = IngestManager.getDefault().enumerateAbstractFileModules(); > > boolean started = false; > > for (IngestModuleAbstractFile module : modules) { > if (module instanceof MyIngestModule) { > started = true; > break; > } > } > > if (!started) { > modules.add(MyIngestModule.getDefault()); > } > } > } > > Sorry if I've missed something obvious in the docs, but they seem to suggest that you need to reinstall the module every time you want to test changes. (http://www.sleuthkit.org/autopsy/docs/api-docs/mod_ingest_page.html#ingestmodule_registration) > > Thanks > > Petter > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk_______________________________________________ > sleuthkit-developers mailing list > sle...@li... > https://lists.sourceforge.net/lists/listinfo/sleuthkit-developers |