- added locally used scripts, can be useful to someone else, too
--- /dev/null
+#!/bin/sh
+
+DOMAIN_LIST=""
+
+if [ "$1" = "--help" -o -z "$1" -o ! -f "$1" ]
+then
+ echo "Usage: $0 <file>"
+ exit 255
+fi
+
+DOMAIN_LIST=$(cat "$1")
+
+if [ -n "${DOMAIN_LIST}" ]
+then
+ for DOMAIN in ${DOMAIN_LIST};
+ do
+ echo "$0: DOMAIN='${DOMAIN}'"
+ ./fba.py check_instance --domain="${DOMAIN}"
+ done
+fi
+
+echo "$0: All done."
--- /dev/null
+#!/bin/sh
+
+DOMAIN_LIST=""
+SOFTWARE_LIST=""
+TEMP_FILE="${TMP}/domains.tmp"
+
+if [ "$1" = "--help" -o -z "$1" ]
+then
+ echo "Usage: $0 <file>"
+ exit 255
+elif [ -n "$1" -a -f "$1" ]
+then
+ DOMAIN_LIST=$(cat "$1")
+ if [ -z "${DOMAIN_LIST}" ]
+ then
+ echo "$0: No domains found!"
+ exit 255
+ fi
+fi
+
+for DOMAIN in ${DOMAIN_LIST};
+do
+ echo "$0: DOMAIN='${DOMAIN}'"
+ ./fba.py recheck_obfuscation --domain="${DOMAIN}" --force
+ STATUS="$?"
+ if [ "${STATUS}" != "0" ]
+ then
+ echo "$0: Failed!"
+ continue
+ fi
+
+ grep -v "${DOMAIN}" "$1" > "${TEMP_FILE}"
+ mv "${TEMP_FILE}" "$1"
+done
+
+echo "$0: All done."