Skip to content
New issue

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

Implement generic privilege escalation support #24

Merged
merged 1 commit into from Aug 25, 2020
Merged

Implement generic privilege escalation support #24

merged 1 commit into from Aug 25, 2020

Conversation

cole-h
Copy link
Contributor

@cole-h cole-h commented Aug 25, 2020

Instead of hard-coding sudo, the user can now specify what binary should
be used for operations requiring heightened privileges.


While I only tested this with privilegeEscalationCommand = [ "doas" ];, this should theoretically work for all privilege escalation binaries. Implemented as a list because it looks nicer than just a string (even though they would be identical in the end).

Addresses point 1 of #22 (comment). SSH root logins remain to be implemented.

Instead of hard-coding sudo, the user can now specify what binary should
be used for operations requiring heightened privileges.
@infinisil infinisil merged commit 688ec9a into infinisil:master Aug 25, 2020
@infinisil
Copy link
Owner

Looking good, thanks!

@cole-h cole-h deleted the privesc branch August 26, 2020 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants