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

adding sudo #402

Merged
merged 2 commits into from
Dec 23, 2023
Merged

adding sudo #402

merged 2 commits into from
Dec 23, 2023

Conversation

catatonicprime
Copy link
Contributor

I'll be honest... I know this seems silly - but I just observed a curious behavior by an asset discovery system which prompted me to document this.

The asset discovery system is running a command like
sudo sudo -p ************* lsof -iTCP -n -P -F pcnfT

I think this might be an bug in their command generation... but then it occurred to me that if this command works it might be because of a rule like:
dev ALL=NOPASSWD: /usr/bin/sudo as opposed to the more expected dev ALL=NOPASSWD: /usr/sbin/lsof or something.

make me a sandwich -> access denied
sudo make me a sandwich -> access denied
sudo sudo make me a sandwich -> okay

@cyrus-and cyrus-and merged commit 6921399 into GTFOBins:master Dec 23, 2023
1 check passed
@cyrus-and
Copy link
Member

This is boh legit and absurd lol...

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