#!/bin/bash
cd /root/recon
echo '== new panos config200 (junk check) =='
cat pan_clean2.txt
echo '== 198.188.246.239 identify =='
curl -sk -m 10 "https://198.188.246.239/get_portal_info" | head -c 200 | tr '\n' ' '; echo
curl -sk -m 10 "https://198.188.246.239/get_rdf?comp=sdcust&locale_code=en-us" -o /tmp/nd.bin
grep -aoE '2[0-9]\.[0-9]+\.[0-9]+' /tmp/nd.bin | head -1
curl -sk -m 10 -o /tmp/nd.html "https://198.188.246.239/"
grep -aoiE '<title[^>]*>[^<]*' /tmp/nd.html | head -1
echo FU2DONE
