python scripts with metasploit-framework

sharafjaffri picture sharafjaffri · Oct 8, 2014 · Viewed 9k times · Source

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.

Answer

mubix picture mubix · Oct 9, 2014

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