linux-smart-enumeration icon indicating copy to clipboard operation
linux-smart-enumeration copied to clipboard

Missing "doas" configuration checking

Open Reelix opened this issue 3 years ago • 4 comments

https://book.hacktricks.xyz/linux-unix/privilege-escalation#doas

Paths:

  • /etc/doas.conf
  • /usr/local/etc/doas.conf

Reelix avatar May 07 '21 00:05 Reelix

Is there any Linux distribution that uses doas? Isn't it used only in BSD systems?

diego-treitos avatar May 29 '21 22:05 diego-treitos

I came across this case in two different CTFs and noticed that it was a privesc method that LSE missed, so decided to add it here.

Reelix avatar May 30 '21 18:05 Reelix

I see. I will look into it but if it is an exclusive BSD command it will a low priority task as it is not really in the scope of the tool, but I agree it would be a "nice to have" test.

Thanks for taking your time to suggest it.

diego-treitos avatar May 30 '21 18:05 diego-treitos

@diego-treitos [Just to confirm this] I can confirm, one CTF I did awhile ago needed LSE; I do not remember what OS it was, (at least not the exact version) Will check it and come back -> edit my comment to include it.

Have a nice day on both of you!

loneicewolf avatar Jul 11 '21 18:07 loneicewolf