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.

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open modules/post/windows/manage/run_as.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-MetasploitModule-priv_check-for-pr


# Commit to git

git add modules/post/windows/manage/run_as.rbgit commit -m "better docs for MetasploitModule#priv_check"


# Open pull request

gem 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!