metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
MetasploitModule#priv_check
Check if sufficient privileges are present for certain actions and run getprivs for system If you elevated privs to system,the SeAssignPrimaryTokenPrivilege will not be assigned. You need to migrate to a process that is running as system. If you don't have privs, this exits script.
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open modules/post/windows/manage/run_as.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-MetasploitModule-priv_check-for-pr
# Commit to gitgit add modules/post/windows/manage/run_as.rbgit commit -m "better docs for MetasploitModule#priv_check"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-MetasploitModule-priv_check-for-pr
hub pull-request
# Celebrate!