sharafjaffri
sharafjaffri

Reputation: 2214

python scripts with metasploit-framework

I have installed metasploit-framework from git. It's working fine. I have followed tutorial from Metasploit Framework.

Now I would like to add more scripts to this framework, like scripts from Avg Security Scripts

I would like to know, How can we install and tell metasploit to use these scripts?

Any help would be appreciated as it may help a step forward.

Upvotes: 2

Views: 11513

Answers (2)

mubix
mubix

Reputation: 171

Metasploit is written in Ruby and it doesn't support modules or scripts written in Python. However, Metasploit does have an RPC interface using MSGPACK.

Here are some tutorials on using Python + MSGPACK + Metasploit:

And here is a library that SpiderLabs put out for MSF RPC written in Python: https://github.com/SpiderLabs/msfrpc

Upvotes: 4

SilverlightFox
SilverlightFox

Reputation: 33578

Check out the guide here.

it's pretty easy, using Metasploit's default local module search path, $HOME/.msf4/modules, and there are just a couple caveats:

  • Mirror the "real" Metasploit module paths
  • Create an appropriate category

So if you're root user it is just a case of dropping in the modules into the correct directory strucutre at /root/.msf4/modules.

Upvotes: 1

Related Questions