mirror of
https://github.com/LionSec/katoolin.git
synced 2026-04-25 08:55:59 +03:00
[GH-ISSUE #42] Check for root privileges. #33
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/katoolin-LionSec#33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dpdani on GitHub (Oct 12, 2016).
Original GitHub issue: https://github.com/LionSec/katoolin/issues/42
Since basically the entirety of katoolin requires root privileges, it would be a good idea to check for such privileges before attempting an os.system call (would subprocess be a better option?).
Check os.geteuid for further details.
It's only supported on Unix systems, but I think that's ok in this case ;).