metasploit-framework

https://github.com/rapid7/metasploit-framework

Ruby

Metasploit Framework

Msf::DBManager::Import::Nexpose::Raw#nexpose_refs_to_struct

Takes an array of vuln hashes, as returned by the NeXpose rawxml stream
parser, like:
  [
    "id"=>"winreg-notes-protocol-handler", severity="8", "refs"=>["source"=>"BID", "value"=>"10600", ...]
    "id"=>"windows-zotob-c", severity="8", "refs"=>["source"=>"BID", "value"=>"14513", ...]
  ]
and transforms it into a struct, containing :id, :refs, :title, and :severity

Other attributes can be added later, as needed.

Source | Google | Stack overflow

Edit

git clone [email protected]:rapid7/metasploit-framework.git

cd metasploit-framework

open lib/msf/core/db_manager/import/nexpose/raw.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Msf--DBManager--Import--Nexpose--Raw-nexpose_refs_to_struct-for-pr


# Commit to git

git add lib/msf/core/db_manager/import/nexpose/raw.rbgit commit -m "better docs for Msf::DBManager::Import::Nexpose::Raw#nexpose_refs_to_struct"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Msf--DBManager--Import--Nexpose--Raw-nexpose_refs_to_struct-for-pr

hub pull-request


# Celebrate!