#!/bin/bash
cd /root/recon
/root/pt/bin/python3 ver2.py
echo "===PLESK versions==="
awk -F'\t' '$1=="zimbra" && $5!=""{print $5}' ver2.tsv | sort | uniq -c | sort -rn | head -15
echo "===PLESK no-version titles==="
awk -F'\t' '$1=="zimbra" && $5==""{print $6}' ver2.tsv | sort | uniq -c | sort -rn | head -8
echo "===FORTI==="
awk -F'\t' '$1=="fortinet"{print $5"\t"$6}' ver2.tsv | sort | uniq -c | sort -rn | head -12
echo "===SONIC==="
awk -F'\t' '$1=="sonicwall"{print $2"\t"$5"\t"$6}' ver2.tsv | head -10
echo "===OTHER==="
awk -F'\t' '$1!="zimbra" && $1!="fortinet" && $1!="sonicwall"{print $1"\t"$2"\t"$3"\t"$5"\t"$6}' ver2.tsv | head -20
