peass-ng / PEASS-ng

PEASS - Privilege Escalation Awesome Scripts SUITE (with colors)
https://book.hacktricks.xyz
Other
15.86k stars 3.07k forks source link

fix su brute check. #363

Closed camercu closed 1 year ago

camercu commented 1 year ago

Currently, the 'su' brute check is never performed when 'sudo' is not found by command -v sudo. Since sudo is not required for 'su' brute, I removed that and replaced it with a check for 'su'. This ensures the su brute check will correctly be performed even when sudo is not found.

Additionally, the help message printed for command line args didn't include the -a flag that invokes all checks and unsets "FAST" mode, which is required for the su brute check to be invoked.

Note, my code editor automatically removes trailing white space, so several extra lines appear to change due to that. The significant changes are in:

carlospolop commented 1 year ago

Hey @camercu, thanks for the PR!