[prev in list] [next in list] [prev in thread] [next in thread]
List: sleuthkit-developers
Subject: Re: [sleuthkit-developers] Autopsy 3 module development: Loading an external ingest module from netb
From: Petter Christian Bjelland <petter.bjelland () hig ! no>
Date: 2013-08-23 8:09:09
Message-ID: CAEScp1xCN8bHWx1dp8Ln+Ad__FuG8psXq20Z8pZ8zHU7neLNhQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Thanks Brian,
I'm using the 3.0.6 release of the Autopsy platform.
Petter
2013/8/23 Brian Carrier <carrier@sleuthkit.org>
> 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 <
> petter.bjelland@hig.no> 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
> > sleuthkit-developers@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/sleuthkit-developers
>
>
[Attachment #5 (text/html)]
<div dir="ltr">Thanks Brian,<div><br></div><div>I'm using the 3.0.6 release of \
the Autopsy platform.</div><div><br></div><div>Petter</div></div><div \
class="gmail_extra"><br><br><div class="gmail_quote">2013/8/23 Brian Carrier <span \
dir="ltr"><<a href="mailto:carrier@sleuthkit.org" \
target="_blank">carrier@sleuthkit.org</a>></span><br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Hi Petter,<br> <br>
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.<br> <br>
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.<br> <br>
<a href="http://www.sleuthkit.org/autopsy/docs/api-docs/mod_dev_page.html" \
target="_blank">http://www.sleuthkit.org/autopsy/docs/api-docs/mod_dev_page.html</a><br>
<br>
brian<br>
<div><div class="h5"><br>
<br>
<br>
On Aug 22, 2013, at 5:28 PM, Petter Christian Bjelland <<a \
href="mailto:petter.bjelland@hig.no">petter.bjelland@hig.no</a>> wrote:<br> <br>
> Hi,<br>
><br>
> 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".<br> ><br>
> 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.<br> ><br>
> 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.<br> \
><br> > @OnStart<br>
> public class MyModuleStarter implements Runnable {<br>
><br>
> @Override<br>
> public void run() {<br>
> List<IngestModuleAbstractFile> modules = \
IngestManager.getDefault().enumerateAbstractFileModules();<br> ><br>
> boolean started = false;<br>
><br>
> for (IngestModuleAbstractFile module : modules) {<br>
> if (module instanceof MyIngestModule) {<br>
> started = true;<br>
> break;<br>
> }<br>
> }<br>
><br>
> if (!started) {<br>
> modules.add(MyIngestModule.getDefault());<br>
> }<br>
> }<br>
> }<br>
><br>
> 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. (<a \
href="http://www.sleuthkit.org/autopsy/docs/api-docs/mod_ingest_page.html#ingestmodule_registration" \
target="_blank">http://www.sleuthkit.org/autopsy/docs/api-docs/mod_ingest_page.html#ingestmodule_registration</a>)<br>
><br>
> Thanks<br>
><br>
> Petter<br>
</div></div>> ------------------------------------------------------------------------------<br>
> Introducing Performance Central, a new site from SourceForge and<br>
> AppDynamics. Performance Central is your source for news, insights,<br>
> analysis and resources for efficient Application Performance Management.<br>
> Visit us today!<br>
> <a href="http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk_______________________________________________" \
target="_blank">http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk_______________________________________________</a><br>
> sleuthkit-developers mailing list<br>
> <a href="mailto:sleuthkit-developers@lists.sourceforge.net">sleuthkit-developers@lists.sourceforge.net</a><br>
> <a href="https://lists.sourceforge.net/lists/listinfo/sleuthkit-developers" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/sleuthkit-developers</a><br>
<br>
</blockquote></div><br></div>
------------------------------------------------------------------------------
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
sleuthkit-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sleuthkit-developers
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic