Git Product home page Git Product logo

Comments (1)

reeteshranjan avatar reeteshranjan commented on August 26, 2024

I tried client.plugins.load('sqlmap') to load the sqlmap plugin; however, it fails with an error like this:

In [5]: client.plugins.load('sqlmap')
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-5-1b1c8fdcedfd> in <module>()
----> 1 client.plugins.load('sqlmap')

/home/kaliuser/.virtualenvs/pentestsrv/local/lib/python2.7/site-packages/metasploit/msfrpc.pyc in load(self, plugin)
   1189         - plugin : a name of a plugin to load.
   1190         """
-> 1191         self.rpc.call(MsfRpcMethod, MsfRpcMethod.PluginLoad, plugin)
   1192
   1193     def unload(self, plugin):

/home/kaliuser/.virtualenvs/pentestsrv/local/lib/python2.7/site-packages/metasploit/msfrpc.pyc in call(self, method, *args)
    229         elif self.authenticated:
    230             l.insert(1, self.sessionid)
--> 231             self.client.request('POST', self.uri, packb(l), self._headers)
    232             r = self.client.getresponse()
    233             if r.status == 200:

/home/kaliuser/.virtualenvs/pentestsrv/local/lib/python2.7/site-packages/msgpack/__init__.pyc in packb(o, **kwargs)
     45     See :class:`Packer` for options.
     46     """
---> 47     return Packer(**kwargs).pack(o)
     48
     49 # alias for compatibility to simplejson/marshal/pickle.

msgpack/_packer.pyx in msgpack._packer.Packer.pack (msgpack/_packer.cpp:3661)()

msgpack/_packer.pyx in msgpack._packer.Packer.pack (msgpack/_packer.cpp:3503)()

msgpack/_packer.pyx in msgpack._packer.Packer._pack (msgpack/_packer.cpp:3230)()

msgpack/_packer.pyx in msgpack._packer.Packer._pack (msgpack/_packer.cpp:3382)()

TypeError: can't serialize <class 'metasploit.msfrpc.MsfRpcMethod'>

Not sure how stable this feature is.

from pymetasploit.

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.