-
Notifications
You must be signed in to change notification settings - Fork 826
/
cve.sh
executable file
·44 lines (38 loc) · 966 Bytes
/
cve.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env bash
# by Lee Baird (@discoverscripts)
# Check if Firefox is running
if pgrep firefox > /dev/null; then
echo
echo "[!] Close Firefox before running script."
echo
exit 1
fi
echo
echo
echo "Search for info on a CVE."
echo
echo -n "CVE: "
read -r CVE
echo
# Check for a valid CVE
if [[ ! $CVE =~ ^CVE-[0-9]{4}-[0-9]{4,6}$ ]]; then
echo
echo "[!] Invalid format."
echo
exit 1
fi
urls=(
"https://nvd.nist.gov/vuln/detail/$CVE"
"https://www.cvedetails.com/cve/$CVE"
"https://vulners.com/search?query=$CVE"
"https://www.tenable.com/cve/$CVE"
"https://cve.mitre.org/cgi-bin/cvename.cgi?name=$CVE"
"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=$CVE"
"https://www.google.com/search?q=%22$CVE%22+AND+exploit"
"https://www.rapid7.com/db/?q=$CVE&type=nexpose"
)
# Open each URL in a new tab
for url in "${urls[@]}"; do
xdg-open "$url" &
sleep 2
done