crash.software
Projects
Pull Requests
Issues
Builds
linuxprivchecker
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
linuxprivchecker
Commits
a7ecd227
🤬
Sign In
sudo -l will hang and wait for the user to input a password if there is not a user specific NOPASSWD entry available in the sudoers files. By adding the -n parameter, we force the command to be non-interactive.
James Hogan
committed
7 years ago
a7ecd227
1 parent
2f791068
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
Total 1 files
■ ■
■ ■
■ ■
linuxprivchecker.sh
skipped 127 lines
128
128
echo -e "\n[+] Sudoers Files (Privileged) [/etc/sudoers.d/*]"
129
129
formatCommand "cat /etc/sudoers.d/* 2>/dev/null | grep -v '#' 2>/dev/null"
130
130
131
-
echo -e "\n[+] User's specific sudo
permissions
"
132
-
formatCommand "sudo -
l
"
131
+
echo -e "\n[+] User's specific
NOPASSWD
sudo
entries
"
132
+
formatCommand "sudo -
ln
"
133
133
134
134
echo -e "\n[+] Logged in User Activity"
135
135
formatCommand "w 2>/dev/null"
skipped 118 lines
All occurrences
Please wait...
Page is in error, reload to recover