[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&#39;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">&lt;<a href="mailto:carrier@sleuthkit.org" \
target="_blank">carrier@sleuthkit.org</a>&gt;</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&#39;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 &lt;<a \
href="mailto:petter.bjelland@hig.no">petter.bjelland@hig.no</a>&gt; wrote:<br> <br>
&gt; Hi,<br>
&gt;<br>
&gt; 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 \
&quot;run&quot;.<br> &gt;<br>
&gt; Without any modifications Autopsy does not list the module under &quot;Add Data \
Source&quot; -&gt; &quot;Configure Ingest Modules&quot;. Reinstalling the .nbm for \
each update is not really an option.<br> &gt;<br>
&gt; I&#39;ve made this solution using the @OnStart annotation which checks if the \
module is loaded in the IngestManager or not, but it doesn&#39;t feel right.<br> \
&gt;<br> &gt; @OnStart<br>
&gt; public class MyModuleStarter implements Runnable {<br>
&gt;<br>
&gt;     @Override<br>
&gt;     public void run() {<br>
&gt;         List&lt;IngestModuleAbstractFile&gt; modules = \
IngestManager.getDefault().enumerateAbstractFileModules();<br> &gt;<br>
&gt;         boolean started = false;<br>
&gt;<br>
&gt;         for (IngestModuleAbstractFile module : modules) {<br>
&gt;             if (module instanceof MyIngestModule) {<br>
&gt;                 started = true;<br>
&gt;                 break;<br>
&gt;             }<br>
&gt;         }<br>
&gt;<br>
&gt;         if (!started) {<br>
&gt;             modules.add(MyIngestModule.getDefault());<br>
&gt;         }<br>
&gt;     }<br>
&gt; }<br>
&gt;<br>
&gt; Sorry if I&#39;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>


&gt;<br>
&gt; Thanks<br>
&gt;<br>
&gt; Petter<br>
</div></div>&gt; ------------------------------------------------------------------------------<br>
 &gt; Introducing Performance Central, a new site from SourceForge and<br>
&gt; AppDynamics. Performance Central is your source for news, insights,<br>
&gt; analysis and resources for efficient Application Performance Management.<br>
&gt; Visit us today!<br>
&gt; <a href="http://pubads.g.doubleclick.net/gampad/clk?id=48897511&amp;iu=/4140/ostg.clktrk_______________________________________________" \
target="_blank">http://pubads.g.doubleclick.net/gampad/clk?id=48897511&amp;iu=/4140/ostg.clktrk_______________________________________________</a><br>


&gt; sleuthkit-developers mailing list<br>
&gt; <a href="mailto:sleuthkit-developers@lists.sourceforge.net">sleuthkit-developers@lists.sourceforge.net</a><br>
 &gt; <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