sudo_sniff
sudo_sniff copied to clipboard
Dynamically find sudo
sudo may be in different locations on different systems, perhaps implement a function to locate it. Perhaps the output of which sudo can be used.
Right now /usr/bin/sudo is hardcoded.
which just iterates over the "$PATH", right?
We can just use the user's PATH environment variable, tokenize it by colon, and then work through each folder to find the real sudo.
Yes, that should do it. Something you want to implement? :)
Yes, that should do it. Something you want to implement? :)
I can do it.
@fluks Sure, unless @boxmein beats you to it ;)