Git Product home page Git Product logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
Ok, this is most likely caused because the ModuleRegistry will register any 
class present in a module once the module's been sourced.  This means that the 
line:

from volatility.plugins.filescan import FileScan, MutantScan,
DriverScan, PoolScanDriver

puts those classes directly into your module's namespace, causing them to be 
re-registered and causing the clash.

Could you please try the following instead:

import volatility.plugins.filescan as filescan

class DriverIRP(filescan.DriverScan):

and let us know whether that works?

Original comment by [email protected] on 29 Sep 2010 at 2:22

from volatility.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024

Original comment by [email protected] on 29 Sep 2010 at 2:22

  • Changed state: Accepted

from volatility.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
Yep, that solves the problem - thanks. Another thing, which I can enter 
separately if you like (but I figure you might be aware of it) is that plugins 
in the contrib directory aren't registering. For example the 
contrib/plugins/verinfo.py doesn't show up for me using Rev 483. 

Original comment by [email protected] on 29 Sep 2010 at 2:37

from volatility.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
Ok, cool.  I think I might leave the bug open a little longer to discuss 
whether we should fix this, or whether we're happy telling people they can't 
use from...import lines.  Scudette, what's your take on this?

Also, would this go away if we changed the dynamic namespaces to path-based 
namespaces?  My guess is that it won't, in which case we still need to make 
this design decision.

Lastly, you're quite right, the contrib plugins won't register, that's by 
design.  If you want the (highly unsupported, since it's currently just my 
horrible verinfo) contrib plugins registered, you'll need to add them using 
either --plugins or setting it permanently in ~/.volatilityrc.


Original comment by [email protected] on 29 Sep 2010 at 2:46

  • Added labels: Priority-Low
  • Removed labels: Priority-Medium

from volatility.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
I dont expect the issue will go away if we change the import mechanism. This is 
a feature not a bug!

We could remove the restriction on registering the same module twice and that 
would make it go away.

Original comment by [email protected] on 29 Sep 2010 at 3:06

from volatility.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
No, I definitely don't want to remove that restriction.  We'd end up with 
duplicates, or worse, only let one of them win, and then we'd have to decide 
which one.  So it sounds like we're going to simply enforce that plugins 
authors cannot directly import into their plugins namespace.

I've updated the wiki page on Plugins, and am now marking this as WontFix.

Original comment by [email protected] on 29 Sep 2010 at 4:01

  • Changed state: WontFix

from volatility.

Related Issues (20)

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.