I need to make a bash script that will give me a list of true or false depending on the address it scanned. Right now I have this simple script
#!/bin/bash
input="/root/file1"
input2="/root/file2"
paste -d, file{1,2}.txt | while IFS=, read x y;
do nmap -sV --version-light --script ssl-poodle -p $y $x
if something(detects its vulnerable)
echo "true">>file3.txt
else (not vulnerable)
echo "false">>fie3.txt
done
the information nmap returns when vulerable is
Nmap scan report for ip Host is up (0.044s latency). PORT STATE SERVICE VERSION port/tcp open ssl/http Microsoft IIS | ssl-poodle: | VULNERABLE: | SSL POODLE information leak | State: VULNERABLE
Is there a way to detect the word vulnerable, or what would be the best way to do it?