Skip to content

sudo-parser is a tool to audit complex sudoers files

License

Notifications You must be signed in to change notification settings

CiscoCXSecurity/sudo-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published