metasploit-framework

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

Ruby

Metasploit Framework

Msf::DBManager::Host#report_host

Report a host's attributes such as operating system and service pack

The opts parameter MUST contain
+:host+::         -- the host's ip address

The opts parameter can contain:
+:state+::        -- one of the Msf::HostState constants
+:os_name+::      -- something like "Windows", "Linux", or "Mac OS X"
+:os_flavor+::    -- something like "Enterprise", "Pro", or "Home"
+:os_sp+::        -- something like "SP2"
+:os_lang+::      -- something like "English", "French", or "en-US"
+:arch+::         -- one of the ARCH_* constants
+:mac+::          -- the host's MAC address
+:scope+::        -- interface identifier for link-local IPv6
+:virtual_host+:: -- the name of the virtualization software, eg "VMWare", "QEMU", "Xen", "Docker", etc.

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open lib/msf/core/db_manager/host.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Msf--DBManager--Host-report_host-for-pr


# Commit to git

git add lib/msf/core/db_manager/host.rbgit commit -m "better docs for Msf::DBManager::Host#report_host"


# 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--Host-report_host-for-pr

hub pull-request


# Celebrate!