HackTricks-wiki / hacktricks

Welcome to the page where you will find each trick/technique/whatever I have learnt in CTFs, real life apps, and reading researches and news.
http://book.hacktricks.xyz/
Other
9.08k stars 2.7k forks source link

[Correction] Incorrect command at https://book.hacktricks.xyz/linux-hardening/privilege-escalation#script-binaries-in-path #737

Closed scriptk1d closed 7 months ago

scriptk1d commented 1 year ago

Issue Description: Hello, I have noticed an error in the command at the following location: https://github.com/carlospolop/hacktricks/tree/master/linux-hardening/privilege-escalation#scriptbinaries-in-path

Error Description: The -type parameter for the find command should not be -f. The correct command should be:

for d in $(echo $PATH | tr ":" "\n"); do find $d -type f -executable 2>/dev/null; done

Thank you for your attention to this matter. Please consider making the necessary correction.

carlospolop commented 7 months ago

thanks! Please, next time feel free to send a PR to have it fixed faster!