
Script to scan a list of hosts for CVE-2021-3156 (sudoedit privilege escalation) vulnerability, with configurable passwordless SSH connections for automated testing.
Script to scan a list of hosts to check if they are vulnerable to CVE-2021-3156. If not vulnerable, the output is as follows:
sudoedit: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper sudoedit: a password is required
It can be configured and changed so that it does not ask for a password every time it connects to each server
Tested on Ubuntu