Skip to content

sudo-parser is a tool to audit complex sudoers files

License

Notifications You must be signed in to change notification settings

hartl3y94/sudo-parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

sudo-parser

This repository contains a tool to parse complex sudoers configurations, highlighting possible security misconfigurations.

To use this tool:

./sudo-parse.pl -f /path/to/sudoers

More complicated uses are also possible. For example, to use it to drive t0thkr1s's gtfo:

./sudo-parser.pl -f /etc/sudoers | grep "E:" | grep -v "ALL" | cut -f 2 -d " " | cut -f 2 -d: | while read commandname
do
  ./gtfo.py "$(basename "${commandname}")"
done

For any queries about the contents of this repository please contact Security Advisory EMEAR.

About

sudo-parser is a tool to audit complex sudoers files

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 96.6%
  • Shell 3.4%