metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
MetasploitModule#ps_wmi_exec
Wrapper function for instantiating a WMI win32_process class object in powershell. Insantiates the [wmiclass] object and configures the scope Sets impersonation level and injects credentials as needed Configures application startup options to hide the newly created window. Adds start-up check for remote proc.
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open modules/exploits/windows/local/ps_wmi_exec.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-MetasploitModule-ps_wmi_exec-for-pr
# Commit to gitgit add modules/exploits/windows/local/ps_wmi_exec.rbgit commit -m "better docs for MetasploitModule#ps_wmi_exec"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-MetasploitModule-ps_wmi_exec-for-pr
hub pull-request
# Celebrate!