metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
Msf::DBManager::Host#update_host_via_sysinfo
Update a host's attributes via semi-standardized sysinfo hash (Meterpreter) The opts parameter MUST contain the following entries +:host+:: -- the host's ip address +:info+:: -- the information hash * 'Computer' -- the host name * 'OS' -- the operating system string * 'Architecture' -- the hardware architecture * 'System Language' -- the system language The opts parameter can contain: +:workspace+:: -- the workspace for this host
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open lib/msf/core/db_manager/host.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Msf--DBManager--Host-update_host_via_sysinfo-for-pr
# Commit to gitgit add lib/msf/core/db_manager/host.rbgit commit -m "better docs for Msf::DBManager::Host#update_host_via_sysinfo"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Msf--DBManager--Host-update_host_via_sysinfo-for-pr
hub pull-request
# Celebrate!